Q. The formula E = mc**2 states that the equivalent energy (E) can be calculated as the mass (m) multiplied by the speed of light (c = about 3×108 m/s) squared. Write a program that accepts the mass of an object and determines its energy.


Answer:-


mass = int(input("Enter Mass :- "))
print ("Energy: -", mass*(3*10**8)**2 )


Output:-

Enter Mass :- 12
Energy: - 1080000000000000000
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post