Advertisement
savovaap_

From Angle in Degrees to Angle in Radian

Mar 29th, 2023 (edited)
735
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5.     float degree, radian;
  6.     int Pi = 3.14;
  7.  
  8.     printf("Enter angle in Degrees - ");
  9.     scanf("%f", &degree);
  10.  
  11.     radian = degree * (Pi / 180.0);
  12.  
  13.     printf("Angle in Radian %.2f", radian);
  14.  
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement