sourav
In the zone
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int km;
float m,cm;
printf("Enter distance between two places = ");
scanf("%d",&km);
m=km*1000;
cm=m*100;
printf("Distance in meters = %f",m);
printf("\nDistance in centimeters = %f",cm);
getch();
}
on entering no. above 30 it has some problems. If I go above 30 it shows wrong negative ans.