Commit dd49f610 by glkink

Add new file

parent 5a782711
Showing with 32 additions and 0 deletions
#include <stdio.h>
#include <stdio.h>
int main(void)
{
float x, sum, d;
int i;
printf("Sisesta arv: ");
scanf(" %f", &x);
sum = 0;
d = 1;
for(i = 1; i <= 30; i++)
{
if(i<30)
{
sum = sum + d;
d = (d * x) / i;
}
i=i+1;
}
printf("%0.3f \n",sum);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment