Sunday, 15 June 2014

C++ program to convert kilometres to miles



Here is a C++ program to convert kilometres to miles

SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
    float kilomet,mile;
    cout<<"Enter kilometers ";
    cin>>kilomet;
    mile=kilomet*.62137;
    cout<<kilomet<<" kilometers = "<<mile<<" miles";
    return 0;
}


Any questions regarding to program please write in comments.

No comments:

Post a Comment