C++ float type Converts gallons to cubic feet

Description

C++ float type Converts gallons to cubic feet

#include <iostream>
using namespace std;
int main()/*  w ww  . jav a  2s  .co  m*/
{
   float gallons, cufeet;
   cout << "\nEnter quantity in gallons: ";
   cin >> gallons;
   cufeet = gallons / 7.481;
   cout << "Equivalent in cublic feet is " << cufeet << endl;
   return 0;
}



PreviousNext

Related