SOURCE CODE :
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
#define c 3*pow(10,8)
main()
{
float e,m,a;
printf("PROGRAM PENGHITUNG ENERGI\n");
printf("masukkan massa uranium : ");
scanf("%f",&m);
a = pow(c,2);
printf("E = %.2lf \n",e=m*a);
system("PAUSE");
}
PRINTSCREENNYA :
Tidak ada komentar:
Posting Komentar