#include <stdio.h>
void main()
{
float gallon,litter;
printf("\n\n");
printf("\t\tGallon Litre");
printf("\n\t\t...... ......");
for(gallon=1; gallon<=10; gallon++)
{
litter = gallon*3.785;
printf("\n\t\t%5.2f %5.2f", gallon, litter);
}
printf("\n\n");
return 0;
}
void main()
{
float gallon,litter;
printf("\n\n");
printf("\t\tGallon Litre");
printf("\n\t\t...... ......");
for(gallon=1; gallon<=10; gallon++)
{
litter = gallon*3.785;
printf("\n\t\t%5.2f %5.2f", gallon, litter);
}
printf("\n\n");
return 0;
}
No comments:
Post a Comment