Algorithm to Convert Temperature (Fahrenheit to Celsius and Vice Versa)
Subject: PPS (Programming for Problem Solving)
Contributed By: Sanjay
Created At: February 3, 2025
Question:
Write an Algorithm to Convert Temperature (Fahrenheit to Celsius and Vice Versa)
Explanation Video:

Explanation:
Algorithm:
Start.
Read the temperature and unit (F or C).
If unit is F:
Convert to Celsius: C = (F - 32) / 1.8.
If unit is C:
Convert to Fahrenheit: F = (C * 1.8) + 32.
Print the converted temperature.
Stop.