Write a program that inputs the length of two pieces of wood in yards and feet (as whole numbers) and prints the total.

Sample Run
Enter the Yards: 3
Enter the Feet: 2
Enter the Yards: 4
Enter the Feet: 1
Sample Output
Yards: 8 Feet: 0

Hint: Change all of the inputs into feet first - remember there are 3 feet in each yard. Now that the wood is in feet, find the yards and feet similarly to the last practice, using regular and modular division.



Answer :

Other Questions