Wednesday, 10 July 2013


c++ program to convert gallons to liters

Code:
/*c++ program to convert gallons to liters*/
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
float gallons,litres;
cout <<" Enter Gallons ";
cin >>gallons;
liters=gallons*3.7854;
cout <<" Litre is =" <<litres;
getch();
return 0;
}

Sample Output:


Comment bellow for your Query and Feedback

Related Posts :



1 comment:

  1. When your website or blog goes live for the first time, it is exciting. That is until you realize no one but you and your. how many cups in a gallon

    ReplyDelete