===========================================================================
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float x,m,cm,f,i;
cout<<"Enter the distance between any two cities(in km):- ";
cin>>x;
m=x*(1000);
cm=m*(100);
f=(30.48)*cm;
i=(2.54)*cm;
cout<<"\n The distance in metre isÆ "<<m;
cout<<"\n The distance in centimetre isÆ "<<cm;
cout<<"\n The distance in feet isÆ "<<f;
cout<<"\n The distance in inches isÆ "<<i;
getch();
}
CODING
#include<iostream.h>
#include<conio.h>
#include<math.h>
void main()
{
clrscr();
float x,m,cm,f,i;
cout<<"Enter the distance between any two cities(in km):- ";
cin>>x;
m=x*(1000);
cm=m*(100);
f=(30.48)*cm;
i=(2.54)*cm;
cout<<"\n The distance in metre isÆ "<<m;
cout<<"\n The distance in centimetre isÆ "<<cm;
cout<<"\n The distance in feet isÆ "<<f;
cout<<"\n The distance in inches isÆ "<<i;
getch();
}
===========================================================================
No comments:
Post a Comment