home *** CD-ROM | disk | FTP | other *** search
- // **************************************************************
- // litres.cpp
- // Example program for Simple C++
- //
- // (c) 1999 Emmenjay Consulting Pty Ltd
- //
- // History
- // 06/04/99 MJS Initial Coding.
- //
- // **************************************************************
-
- #include <iostream>
-
- int main()
- {
- int i;
-
- std::cout << "Gallons\tLitres\n";
- std::cout << "-------\t------\n";
- for (i=1; i<=10; i++)
- std::cout << i << "\t" << i*3.785411784 << '\n';
-
- return 0;
- }
-