"Write a program that keeps prompting user for an integer. Upon an input of 0, the program will show the first 5 (if not, lesser) unique integers entered."
i can't seem to get my codes to work. any help pls?
first of all never use the main function as void it is is ALWAYSint 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.