Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <math.h>
- int main()
- {
- double degrees;
- double radians;
- double result;
- printf("Assignment #1-3, Riki Mack, masc1794\n");
- printf("Please input an integer: \n");
- scanf("%.3f",°rees);
- radians = degrees*(M_PI/180.0);
- result = sin(radians);
- printf("%.3f\n",result);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement