Sunday 15 June 2014

C++ program to convert feet to inches


Here is a C++ program to convert feet to inches


 SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
    float inch;
    int feet;
    cout<<"Enter the value in feet ";
    cin>>feet;
    inch=feet*12;
    cout<<feet<<" feet is equals to "<<inch<<" inch";
    return 0;
}

Any questions regarding to program please write in comments.

No comments:

Post a Comment