C Program to Convert a length from kilometers to meters.

0
5
digitalample eye
Write a program to convert a length from kilometers to meters.
C Program to Convert a length from kilometers to meters.
Program to convert a length from km to meters.
C Programming code to convert KM to Meter

C Code

Write a program to convert a length from kilometers to meters.
#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();
}

LEAVE A REPLY

Please enter your comment!
Please enter your name here