README.md
December 5, 2022 ยท View on GitHub
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 | |
| By | Jack Tabsun |
| Level | Beginner |
| User Rating | 3.8 (34 globes from 9 users) |
| Compatibility | Microsoft Visual C++ |
| Category | Math |
| World | C / 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;
}