/* ex1106.c */ #include <stdio.h> int main() { float degrees,radian; printf("Enter an angle in degrees: "); scanf("%f",°rees); radian=0.0174532925*degrees; printf("%.2f degrees is %.2f radians.\n",degrees,radian); return(0); }
Enter an angle in degrees: 60 60.00 degrees is 1.05 radians. Process returned 0 (0x0) execution time : 3.549 s Press any key to continue.
Tidak ada komentar:
Posting Komentar