GET EDUCATE

Contents
Basics of C Programming

⯈Basic C Programs

Algorithm and Flowchart to convert temperature in Celsius to Fahrenheit

The input for this algorithm is temperature in degree Celsius. 

The output is temperature in degree Fahrenheit. 

Formulae:

F = 9/5 * C + 32

The algorithm to convert temperature in degree Fahrenheit is as follows:

Algorithm:

Name of Algorithm: Convert temperature in degree Celsius to Fahrenheit.

Step 1: Start

Step 2: Read temperature in Celsius as ‘C’

Step 3: F = 9 / 5 * C + 32 [Convert to Fahrenheit]

Step 4: Display F

Step 5: Stop

Flowchart:

Flowchart to convert temperature in Celsius to Fahrenheit

Tracing:

Let C = -40

F = 9/5*-40 + 32

F = -40

It displays -40 degree fah. as output.

Scroll to Top