Programming

Convert a Length from Kilometers to Meters

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

Tuts

About Author

Tutsmaster.org provides tutorials related to tech and programmings. We are also setting up a community for the users and students.