Input a range.compute and display the square and cube of each value in the range in the.exe and text file named 'numbers.txt'. accumulate and display the total of squares and cube. also, store the accumulated values in a one dimensional array.
"output"
----------------------------------------------------------------
username:
password:
----------------------------------------------------------------
welcome(username)!
input range:
initial: 2
final:5
the squares and cubes of the values in the range are:
range squares cubes
2 4 8
3 9 27
4 16 64
5 25 125
total (squares) : 54
total (cubes) : 224
numbers.txt
the squares and cubes of the values in the range are:
and so on and so ford
Comments
Leave a comment