Sunday 28 December 2014

Program to convert Kilometer to Meter

#include<stdio.h>
#include<conio.h>
void main()
{
int km,mtr;
printf("Enter the Value\n");
scanf("%d",&km);
mtr=km*1000;
printf("Converted Value is &d",mtr);
getch();
}

Output

Enter the Value
5
Converted Value is 5000