Thursday, June 14, 2012

Switch case: Temperature Convertion

assalamu Alaikum. Hope, you all are well by the grace of Almighty ALLAH. Today we learn Temperature conversion by switch case in C. Let's look at the problem.

Problem: Let consider, C/5 = (F-32)/9 = (K-273)/5. Write a program that first takes the choice from the user what he/she wants. Then a temperature is given as input. Convert the temperature and output the result according to the given choice.



Solution:



Thank you all..:)

0 comments:

Post a Comment