/*
* 1000+ C programs + tutorials
*
*
* 28_inch_to_cm_converter.c
*
*
* Created on: Oct 20, 2014
* Author: Code2care.org
*/
#include
//#include
void main() {
float inch;
float cm;
// clrscr();
printf(" Program to convert inch to cm : ");
printf("\n\n Enter Length in inch : ");
scanf("%f", &inch);
cm = (2.54*inch);
printf("\n\n %f inch in cm = %f \n",inch,cm);
// getch();
}
-
Output :
Program to convert inch to cm :
Enter Length in inch : 27
27.00 inch in cm = 68.58
The best way to learn C programming is to practice more and more of programs .
Code2care C Programming tutorials provide 1000+ programs in C that you can study and become an expert in the language. Programs are divided into categories depending upon type and complexity.
BSc. IT, BSc. Computer Science, BSc. IT, MSc. IT, MSc. Computer Science, MCA, BTech IT & BTech Engineers may find these programs very useful.