ok i need to input numbers for this program i am working on i dont need help with the code for the rest i just need to know how i can input numbers, in a certain way the description asks, and then stop inputing once a certain value is inputted. Here's a description of the program:

Code:
2 Project description 
The input to your program is to consist of a sequence of input lines (redirected from an ASCII text file using standard UNIX input redirection). Each line will contain 4 integers. These will be: 


shape code - The possible shape codes are: 

1 for triangle 
2 for diamond 
3 for parallelogram 
4 for trapezoid 

base size for the shape 

height for the shape 

rotation in number of degrees (clockwise) to rotate the shape before drawing it 

There are some restrictions on the values which may be used. They are listed under "Error Checking" below. 

As an example, suppose the program receives the following line of input: 


3 11 8 0

This instruction says: ``Draw shape code 3 (parallelogram), sized so that it is 11 wide by 8 high, and rotate the shape 0 degrees before drawing it. (This is the command which could be used to draw the parallelogram shown above.) 

The last line in the input will always contain a shape code of -1; it may or may not contain other data items. This is the signal that the program should terminate. (Do not try to draw anything or print any error messages when this line is processed.)
so if anyone can help, please do, thanks!, basically i just need to know how to continue to input values, until the user inputs a -1. thanks