Well, I'm assuming you've got the first part done since your posting it.
So, That means that you are reading in input and storing it somewhere right ?
So, all you have to do is think of a way to not read in more data if the user entered 999.
Try writing it in english and then work your way into code.

heres a simple example -

Ask the user for input.
Check the input.If it is not 999, store it.
otherwise
stop asking for input.

should i use "if... else....." to solve it?

07-15-2009

Spidey

Quote:

should i use "if... else....." to solve it?

Well, there are a number of ways you could solve this problem.
My point was not to take it what I wrote as a direct translation, but to think about the problem and how you would solve it.

If you believe you could do it using an if..else statements then go ahead and try it out and see what you come up with. After that think of ways to improve your program or how you could write it using a different approach.

The best way to learn programing is by actually doing it, and I'm sure you've heard this/will hear this a lot of times.
So write some code and see where you get with it.

07-16-2009

Elysia

The very basic fundamentals for a programmer is to be able to code logic! This usually means that the programmer can translate flow charts and pseudo code into real code.This is a part we cannot help you with! This is the part that YOU must fully understand in order to program any sort of program.
But it's not difficult. All that is required is that you think about how something is done and that you know about these control statements in the language.
Do you know about loops and if statements? They control the logic of the program.