Ask a Teacher



Write a program to convert meter to kilometer.

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

}


comments powered by Disqus