Question: Write a program that takes in a temperature value and convert it to the other scale. For example, if the input is F , convert

Write a program that takes in a temperature value and convert it to the other scale. For example, if the input is F, convert to C (and vice versa).
Round your temperature values to the nearest integer when printing them.
If the input does not include "F" or "C" at the end of the temperature, print "Wrong input format."

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!