blob: c66ceb845e7c5e5a812f02bb065ac178eab9c132 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//Given that
E = 7.5e11 // Energy in kWh
c = 3e8 // speed of light in m/s
// sample problem 4 page No. 223
printf("\n \n\n # Problem 4 # \n")
printf("\n Standard formula used \n E = m*c^2")
m = (E *3.6e6) / c^2// calculation of Amount of mass consumed
printf ("\n Amount of mass consumed is %d kg.", m)
|