2. Write a program in C++ that can accept an integer between 0and 999 billion and output the number by separating thousandsby commas. For example, if the input is 1235468 then the outputshould be 1,2354,468. Use only ONE output statement in yoursolution and it should not be in a loop. You will score zero if youuse more than one output statement in your solution.

Solved
Show answers

Ask an AI advisor a question