25 : C Program to Convert Feet to Milimeter

Check out the complete list of c-programs : C Program List    



This program converts inputted measurement value feet to mm.

Variables :

1. feet : (Datatype float) : to hold measurements in feet entered by the user.

2. milimeter : (Datatype float) : to hold Milimeters value computed.





Functions :

printf() : is used to display something on the console/screen. Format specifier %f in printf function is used to display a float variable on screen. \n is used to add a newline

scanf() : is used to fetch data inputted by the user on the console/screen using keyboard. %f in scanf is indicates that inputted text is of type float.







Formula :

mm = (feet/3.26) x 1000

/*
 * 1000+ C programs + tutorials
 *
 * 
 * 25_feet_to_mm_converter.c
 *
 *
 *  Created on: Oct 20, 2014
 *  Author: Code2care.org
 */

#include 
//#include 

void main() {

  float mm;
  float feet;
  

//    clrscr();

	printf(" Program to convert Feet to Millimeter:  ");

	printf("\n\n Enter Length in Feet  : ");
	scanf("%f", &feet);
    
    mm = (feet/3.26)*1000;
    
    printf("\n\n %f Feet in Millimeter = %f  \n",feet,mm);



//	getch();


}








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.