 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Aghost.temp Guest
|
Posted: Mon Aug 16, 2004 11:02 am Post subject: Help!!! |
|
|
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
|
|
| Back to top |
|
 |
Inverno Guest
|
Posted: Thu Sep 02, 2004 11:38 am Post subject: Re: Help!!! |
|
|
"Aghost.temp" <thusislife (AT) thusislifedesigns (DOT) com> ha scritto nel messaggio
news:nv0Uc.203$uQ6.188 (AT) newsfe5-gui (DOT) ntli.net...
| Quote: | 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
|
So you basically want someone to make your homeworks? Forget about it.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|