welshspoon
Technical User
hi
i'm writing a program so that a user can enter a sequence of values at the command prompt which are then manipulated. These values are stored in an array of size 1000.
The problem im having is that I want the program to stop asking the user for values once a zero has been entered and then proceed to manipulate the entered values.
I've written the same thing in Java and that works fine but as I'm new to C i'm not sure what to do.
Thanks in advance for your help
i'm writing a program so that a user can enter a sequence of values at the command prompt which are then manipulated. These values are stored in an array of size 1000.
The problem im having is that I want the program to stop asking the user for values once a zero has been entered and then proceed to manipulate the entered values.
I've written the same thing in Java and that works fine but as I'm new to C i'm not sure what to do.
Thanks in advance for your help