The program is supposed to take in two numbers from the user and display them separated by a comma, with the smallest one displayed first. This program does run, so there are no syntax errors, but you need to correct it based on the following description.
The program is supposed to check and make sure that both numbers are positive. Only if they are positive, should it display the numbers separated by commas. If both numbers are not positive, the program should only display “Error: Negative Numbers!”.
Please correct the logic errors and submit updating comments at the top of the program.
that looks like fun. A good problem as when you get out of school and into a job you will sometimes have to fix some guys code; people that cheated through school get hired and leave a mess for others to clean up and you have to fix it kinds of things.
You have edited the OP of your previous thread http://www.cplusplus.com/forum/beginner/245220/
to contain same post as this (erasing that threads original content). That thread is now meaningless. That is not acceptable.
Formally, you have now two threads on the same problem. That would be called double-posting. Double-posting is waste of everybody's time.
You have misunderstood your homework. It is your task to understand and edit the code. Have fun, learn well?
There are at least four blatant errors for you to correct.