i am trying to make a conversion table using the while() looping method, and i cant seem to get the values to convert properly. any ideas ?
thanx..
code
______________________________________________
#include <stdio.h>
int main(void)
{
int inch;
float mm, meters;
mm = inch*25.4;
meters = mm/1000;
printf("INCHES MM METERS \n ");
inch = 1;
while(inch < 11)
{
printf("%d %5.2f %5.2f \n",inch,mm,meters);
++inch;
}
return 0;
}