+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2008
    Location
    PA
    Posts
    1,164
    Points
    4,021,188.25
    Rep Power
    221

    Default Gallon To Liter Converter[C++]

    i fixed this source up to work with vista and xp better
    if you would like to try the compiled version click HERE
    Code:
    //Based off of McGraw-HiLL's Gallons to liter converter Edited By SonniE (WWW.codinghs.COM)
    
    #include <iostream>
    using namespace std;
    int main()
    {
    double gallons, liters;
    cout << "Enter number of gallons: ";
    cin >> gallons; 
    liters = gallons * 3.7854; // convert to liters
    cout << "Liters: " << liters << "\n";
    system("PAUSE");
    return 0;
    }


    Get Vip: »Here«
    Donate: »Here«
    >>List of Compilers<<
    >>SFDM Name Generator<<
    [Owner Of FluidCoding]

  2. #2
    Join Date
    Feb 2008
    Location
    C:/Windows/System32
    Posts
    53
    Points
    42,496.00
    Rep Power
    212

    Default

    nice code man these are the codes u should go by to learn

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts