J
JScoobyCed
Aghost.temp said:Hi,
Would anyone help me with the below
1).
a). Using a for loop write a program to display the numbers 1 to 10
inclusive as follows;
1
2
3
etc...
Ensure your program is as efficient as possible.
b). Modify the above program to se an if statement to display the
messasge "Even" next to all even
numbers and the message "Odd" against all odd numbers.
c). Repeat the above stages using while loops and do..while loops
2).
a). Use an array to store the cumulative total for each number, i.e
Number Cumulative Score
1 1
2 3
3 6
4 10
5 15
b). Modify the program to display all the numbers up to a cumulative
score of 100
3). Wire a method to calculate the cube (x*x*x) of each number an display
the answer to the last screen.
Thanks
Also clean my bedroom, brush my teeth...