Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <math.h>
- float rec(int n)
- {
- float sum = 0;
- for (n; n != 0; --n)
- {
- sum = sqrt(sum + (n)*3);
- }
- return sum;
- }
- void main()
- {
- int n;
- printf("Vvedite n: ");
- scanf("%i",&n);
- printf("%f", rec(n));
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment