main () {
int a;
cout << "Enter an integer" << endl;
cin >> a;
cout << "You entered " << a << endl;
}
Read in 342
Inches to Feet = 12 Feet to Yards = 3
28 R 6 9 R 1
------ ----
12 | 342 3 | 28
24 27
102 1
96
6
342 inches = 9 yards, 1 feet and 6 inches.