Software Archive
Read-only legacy content
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
17060 Discussions

problem on how to solve thie problem using turbo c in programing

jed90
Beginner
456 Views
plllssss help me with this...
jeddah90 wrote:
ooohhh sorry,here's the problem statement

According to Einstein's famous equation,the amount of energy E produced when an amount of mass m is completely converted to energy if given by the formula
E is equal to mass which is m times the square of c,whre c is the speed of light...

Write a program that will read in a mass in grams and output the amount of energy produced when the mass is converted to energy.The speed of the light is approximately 2.997925 times 10 to the power of 10cm/sec
if the mass is given in grams,then the formula yields the energy expressed in ergs.Use a constant declaration to name the speed of light.
thanksss...the speed of light can be expressed as 2.997925E10cm/sec...i really cant understand this problem statement,the output input and everything...

0 Kudos
0 Replies
Reply