README.md

December 5, 2022 ยท View on GitHub

Kinetic Energy

Description

It gives you the numerical value of kinetic energy. This thing is related to physics.

More Info

If you like physics, this code will be fun for you

It returns the value of the kinetic energy.

Submitted On
ByJack Tabsun
LevelBeginner
User Rating3.8 (34 globes from 9 users)
CompatibilityMicrosoft Visual C++
CategoryMath
WorldC / C++
Archive File

Source Code

//Kinetic energy
#include<iostream.h>
int main()
{
 float m,v,sv,KE;
 cout<<"Enter the value of mass ";
 cin>>m;
 cout<<"Enter the value of velocity ";
 cin>>v;
 sv=v*v;
 KE=0.5*m*sv;
cout<<"The kinetic energy is "<<KE<<"\n";
 return 0;
}