C Program to Converting Degree to Radian | Degree to Radian conversion in C | Degree to Radian Changing in C language | Program to Degree to Radian conversion C
#include#include #include #include int main() { float a, b, c, d; char s; printf("Enter Degrees: "); scanf("%f", &a); printf("Enter Minutes: "); scanf("%f", &b); c=((b/60)+a)*(3.1416/180); printf("\nThe radians is %.0f", c); printf("\n\nPress y to continue and x to exit: "); scanf("%s", &s); if(s=='y') { system("cls"); return main(); getch(); } if(s=='x') { return 0; }}
No comments:
Post a Comment