Our teacher have asked us to make a program in C language to read the difference between two cities in km, m, cm, inches and feets... I have tried every hell to make this work... I am not able to combine it all together... please help!!! I am so confused.
here is sum rough work i have done:
u first try the conversion of one form to another first.
After u have tested all of them in individual programs u can try to integrate them............
it doesn't work actually they have not taught us all this jus da simple stuff and now they expect us to make something we have never done before don't even have a hint but i went through a tutorial with similar kind of thing... i'll show you what i did but it just shows 0,0,0 n 0 lol! something is badly wrong with the script!!!
int meter =0;
const int km_per_meter=1000;
const int meter_per_cm=1000;
const int cm_per_inches=2.54;
const int inches_per_feet=12;
printf("Enter distance of city 1 in Km: ");
print("that is equivalent to %d meter; %d cm; %d inches and %d feets\n",meter,cm,inches,feet);