Advertisement
Guest User

boop

a guest
Feb 9th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3.  
  4. int main()
  5. {
  6. double degrees;
  7. double radians;
  8. double result;
  9. printf("Assignment #1-3, Riki Mack, masc1794\n");
  10. printf("Please input an integer: \n");
  11. scanf("%.3f",&degrees);
  12. radians = degrees*(M_PI/180.0);
  13. result = sin(radians);
  14. printf("%.3f\n",result);
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement