Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include<stdio.h>
  2.  
  3. void function(int);
  4.  
  5.  
  6.  
  7. int main()
  8.  
  9. {
  10.  
  11. int x = 0;
  12.  
  13.  
  14.  
  15. printf("x: %d\n",x);
  16.  
  17. //scanf("%d", &x);
  18.  
  19.  
  20.  
  21. function(x);
  22.  
  23.  
  24.  
  25. return 0;
  26.  
  27. }
  28.  
  29.  
  30.  
  31. void function(int x)
  32.  
  33. {
  34.  
  35. float fx;
  36.  
  37.  
  38.  
  39. fx=10/x;
  40.  
  41.  
  42.  
  43. printf("f(x) is: %.5f",fx);
  44.  
  45.  
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement