bouchnina

exercice 3

Dec 6th, 2012
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.23 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<math.h>
  3. void F(int x);
  4. int main()
  5. {
  6. int x,i;
  7. for(i=1;i<=10;i++)
  8.     {
  9.     F(i);
  10.     }
  11. system("pause");
  12. return 0;
  13. }
  14. void F(int x)
  15.     {
  16.     float res;
  17.     res=sin(x)+log(x)-sqrt(x);
  18.     printf("f(%d)=%f\n",x,res);
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment