Tuesday, 4 October 2016

Program to find Kinetic Energy of a body .

#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();
}

No comments:

Post a Comment

Basic Implementation of Array as a Pointer

#include<iostream.h> #include<conio.h> void main() { clrscr();   int arr[5];   cout<<"Enter 5 nos. ";   f...