Write a C program to convert meters into kilometers.
#include<stdio.h>
#include<conio.h>
void main()
{
int km,m;
clrscr();
printf("Enter the miter ==>");
scanf("%d",&m);
km=m/1000;
printf("km=%d",km);
getch();
}
--------------------------------------------------------------------------------
Write a C program to convert kilometers to meters
#include<stdio.h>
#include<conio.h>
void main()
{
int meters,kilometrs;
clrscr();
printf("\n\nEnter the kilometers =>");
scanf("%d",&kilometrs);
meters=kilometrs*1000;
printf("\nmeters=%d",meters);
getch();
}