Skip to content

Celsius to Fahrenheit

Python formula + output

Flowchart (ISO 5807)

StartInput cf = c·9 / 5 + 32Output fEndFigure 1 — to_fahrenheit

Source code

Python
def to_fahrenheit():
    c = float(input())
    f = c * 9 / 5 + 32
    print(f)

The editor opens with this code — change it and the chart redraws.

Language
Python
Constructs
formula + output
Topic
Input/Output
Formats
Word, Visio, draw.io, PDF, SVG

Related examples