
please wait
|
|
int
secondly you only prompt once. You should try a do/while or while loop to ask the user for their input until 0 is entered. As far as the assignment goes I am assuming that is only part of it because you are doing something with triangle output and the assignment just asks for a loop of inputs then on input of 0 the program will display the first 5 if not lesser unique ints.