C program to convert KM to CM

C program to convert a Kilometer to Centimeter. Take kilometer as input?

Sol.
Cheat code:
1 Kilometer = 100000 Centimeters
1 Kilometer = 1000 Meters
1 Meter = 100 Centimeters
#include<stdio.h>  
int main()   
{  
float kilometer, centimeter;  
printf(“Enter any number in Kilometer n”);
scanf(“%f”, & kilometer);
// 1 Kilometer = 100000 Centimeters
centimeter = 100000* kilometer;
printf (“Value in Centimeter is: %f n”, centimeter);   
return 0;  
}  
Output: