Convert meter to cm
C Program
#include <stdio.h>
#include <stdlib.h>
int main()
{
float a,res;
printf("Enter number in meter:");
scanf("%f",&a);
res = a*100;
printf("%f meter is %f cm",a,res);
}
Java Program
import java.util.Scanner;
public class SimpleProgram{
public static void main(String[] args)
{
Scanner s = new Scanner(System.in);
System.out.print("Enter Number in meter:");
float a = s.nextFloat();
System.out.print(a +" meter is " + (a*100) + " Cm");
}
}
Python Program
x = int(input("Enter any number: "))
print(str(x) + " Meter is " + str(x*100) + " Centimeter")
0 Comments:
Post a Comment