divider

Objective

Write a program that converts a given height from inches to feet and inches.

Example: If the user inputs 70 inches, your program should display: 5 feet 10 inches.

Skills to Practice

  • icon Prompting a user for input
  • icon Performing arithmetic with division operators.
  • icon Formatting custom output using variables
divider

Tasks

  • icon Create a new project named sprint-1-8
  • icon Complete the following tasks:
    • icon Prompt the user to input their height in inches.
    • icon Convert the height to feet and inches.
    • icon Display the result in the format: "X feet Y inches.
divider

Sample Output

Sample Output
Enter your height in inches: 70 [Enter]
Your height is 5 feet 10 inches.

Begin Sprint