C Program to Convert a length from kilometers to meters.

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();
}