13 lines
302 B
C++
13 lines
302 B
C++
# include <iostream>
|
|
using namespace std;
|
|
const int feet2inch = 12;
|
|
|
|
int main(){
|
|
int height;
|
|
cout << "Enter Your Height (feet): ";
|
|
cin >> height;
|
|
int inch = height / feet2inch;
|
|
int feet = height % feet2inch;
|
|
cout << "Your Height is " << inch << " inch " << feet << " feet" << endl;
|
|
return 0;
|
|
}
|