Hi, My program prints out on the console numbers up to a number specified by a user and prints all the divisors for each number. Now I got some issues.
1) After the numbers get bigger the divisors just continue getting print right after the line ends.. Is it possible to print divisors every time they continue on a new line to start under the very first divisor?
2) Is it possible to get rid of the comma "," after the last divisor?
This is a way of checking if you're at the beginning of a line (numOutput == 0) and incrementing numOutput at the same time. The value of numOutput++ is the value of numOutput, but it has the side effect of incrementing it after the evaluation.