greendevil
May 27th, 2008, 03:33 PM
I need a program that asks the user for starting and ending values and then display a formatted table of squares and cubes.
This is an example display of the program:
Enter the starting value: 7
Enter the ending value: 5
X.......X Squared........X Cubed
7.............49................343
6.............36................216
5.............25................125
Consider the "......" to be spaces. Could someone please help code this please. I am very new to C++ and I need this done by tomorrow. I am guessing this could take no more than 5 minutes to code for experienced C++ programmers.
This is an example display of the program:
Enter the starting value: 7
Enter the ending value: 5
X.......X Squared........X Cubed
7.............49................343
6.............36................216
5.............25................125
Consider the "......" to be spaces. Could someone please help code this please. I am very new to C++ and I need this done by tomorrow. I am guessing this could take no more than 5 minutes to code for experienced C++ programmers.