#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[]) {
// 1 radian = 57.3 derajat
float derajat;
puts ("===========================");
puts (" Konversi derajat ke radian");
puts ("===========================");
printf ("Masukkan derajat : ");
scanf ("%f", &derajat);
float radian = derajat/57.3;
printf ("Nilai derajat : %2.2f radian", radian);
return 0;
}
Tidak ada komentar:
Posting Komentar