Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
108
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. #include <stdlib.h>
  3. #include <math.h>
  4. int main()
  5. {
  6. float a, b, c, d;
  7. int i;
  8. a=0.1;b=0.1;
  9. for (i=0;i<9;i++)
  10. {
  11. c=sin(b);
  12. d=cos(a);
  13. printf("cos=%f ", c);
  14. printf("sin=%f\n", d);
  15. b=b+0.1;
  16. a=a+0.1;
  17. }
  18. system("pause");
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement