Friday, 11 December 2015

write a program that input value in miles and it convert into km

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{ float miles,km;
      cout<<"enter the value in miles to convert in km:"<<endl;
      cin>>miles;
      km=miles*1.609;
      cout<<miles<<" miles = "<<km<<" kilometer";
      getch();
}

No comments:

Post a Comment