Advertisement
RicoHeartless

Untitled

Mar 22nd, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.22 KB | None | 0 0
  1. #define _USE_MATH_DEFINES
  2. #include <math.h>
  3. #include <stdio.h>
  4.  
  5. int main()
  6. {
  7.     double x = 0;
  8.     double y = 0;
  9.     printf("enter x: ");
  10.     scanf_s("%f", &x);
  11.     y = sin(M_PI/x);
  12.     printf("Your result: %.f\n", y);
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement