Sunday, 15 June 2014

C++ program to convert kilometer per hour to meter per second



Here is a C++  program to convert kilometre per hour to meter per second


 SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
    float kilomet,meter;
    cout<<"Enter kilometers/hours ";
    cin>>kilomet;
    meter=kilomet*10/36;
    cout<<kilomet<<" km/hour = "<<meter<<" m/sec";
    return 0;
}

Any questions regarding to program please write in comments.

No comments:

Post a Comment