// sloppyColumns.cpp
//
// Displays table of powers of two, without
// attention to right justification of columns.
// Demonstrates _while_ loop.
#include <iostream>
using namespace std;
int main()
{
cout << "Powers of two" << endl;
cout << "-------------" << endl << endl;
cout << "Exponent Power" << endl;
cout << "-------- -----" << endl << endl;
int power = 1;
int exponent = 0;
while ( power < 100000 )
{
cout << " " << exponent
<< " " << power << endl;
power *= 2;
exponent++;
} // while
return 0;
} // function main