C Program convert meters in to centimeters. Take meter as input ?
Cheat code: 1 meter = 100 centimeter.
#include<stdio.h>
int main()
{
float meter, centimeter;
printf("Enter any number in meter \n");
scanf("%f", & meter);
centimeter = 100 * meter;
printf ("Value in centimeter is: %f \n", centimeter);
return 0;
}
Output:
Post a Comment
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.