Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- void F(int x);
- int main()
- {
- int x,i;
- for(i=1;i<=10;i++)
- {
- F(i);
- }
- system("pause");
- return 0;
- }
- void F(int x)
- {
- float res;
- res=sin(x)+log(x)-sqrt(x);
- printf("f(%d)=%f\n",x,res);
- }
Advertisement
Add Comment
Please, Sign In to add comment