#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
float m,v,KE;
cout<<“Enter mass of the body “;
cin>>m;
cout<<“Enter velocity of the body “;
cin>>v;
KE=0.5*m*v*v;
cout<<“Kinetic Energy of the body is “<<KE;
getch();
}
#include<conio.h>
void main()
{
clrscr();
float m,v,KE;
cout<<“Enter mass of the body “;
cin>>m;
cout<<“Enter velocity of the body “;
cin>>v;
KE=0.5*m*v*v;
cout<<“Kinetic Energy of the body is “<<KE;
getch();
}
No comments:
Post a Comment