Wednesday, June 13, 2012

Switch Case:Centimeters-inches Conversion

Assalamu Alaikum. Hope, you all are well by the grace of Almighty. Today we learn centimeters-inches conversion by switch case in C programming. Let's look at the problem.

Problem: Write a program that converts centimeters to inches & inches to centimeters.


We know that, 1 Centimeter = 0.3937 inche &
                       1 Inche = 2.54 Centimeters

In this program we use 1 centimeter = .03937 inches. let's look at the program.

Thank you all.. :-)


Post a Comment