C Programming

Convert a Length from Kilometers to Meters

C Code,

#include <stdio.h>
#include <conio.h>
void main()
{
int km, m;
clrscr();
printf("Enter the Kilometer:");
scanf("%d",&km);
m=km*1000;
printf("The length in meter=%d",m);
getch();
}

Output

Related Articles

Back to top button

Adblock Detected

Please turn off your Adblocker to view your content.