Stuff
public text v1 · immutable#include <stdio.h>
int main()
{
int cm, step, upper;
upper=10;
cm=0;
step=1;
float inch=2.54;
while(cm<=upper)
{
inch=inch/cm;
printf("Cm: %d\tInch: %f\n", cm, inch);
cm+=step;
inch+=inch;
}
}
/******* The idea here is to make a table
that is a table that is convertion tool for cm to inches.
Example: Cm Inch
1 1/3
by using while loop. ******/