#include<iostream.h>
#include<conio.h>
void main ()
{
clrscr ();
float a,b,c;
cout<<“Enter the distance travelled (in metres) “;
cin>>a;
cout<<“Enter the total time taken (in seconds) “;
cin>>b;
c=a/b;
cout<<“Speed of the object is “<<c<<“m/s”;
getch();
}
#include<conio.h>
void main ()
{
clrscr ();
float a,b,c;
cout<<“Enter the distance travelled (in metres) “;
cin>>a;
cout<<“Enter the total time taken (in seconds) “;
cin>>b;
c=a/b;
cout<<“Speed of the object is “<<c<<“m/s”;
getch();
}
No comments:
Post a Comment