Expand|Select|Wrap|Line Numbers
- #include <iostream>
- #include <string>
- #include <sstream>
- using namespace std;
- int main()
- {
- string mystr;
- int high=0;
- int low=0;
- int i=low;
- cout << "Math Table /n";
- cout << "Enter low number: ";
- getline (cin,mystr);
- stringstream(mystr) >> low;
- cout << "Enter High number: " ;
- getline (cin,mystr);
- stringstream(mystr) >> high;
- for (low < high)
- printf("%8dNumber %8dSquare %8dCube\n ", i, i * i, i * i * i) ;
- return 0;
- }