GET EDUCATE

Contents
Basics of C Programming

⯈Basic C Programs

Algorithm and Flowchart to convert length in Feet to Inches

The input for this question is, length in feet. Let ‘f’ be the length in feet.

Reading input: Read length in feet as ‘f’

Formulae:

1 feet = 12 inches.

Algorithm to convert length in feet to inches is as follows:

Algorithm:

Name of algorithm: To convert length in feet to inches.

Step 1: Start

Step 2: Read length in feet as ‘f’

Step 3: inch = 12 * f [1feet = 12 inches]

Step 4: Display inch

Step 5: Stop

 

Flowchart:

Flowchart for length in feet to inches

Tracing:

At step 2, we read length in feet as ‘f’.

Let f = 2

inch = 2 * 12 = 24 

Displays 24 inches as output.

Scroll to Top