Help Writing Simple Program
Hi,
I'm taking an entry level C++ class to satisfy my computer engineering major. I had homework last night, which consisted of writing several programs, and I stumbled upon one, which after several hours, I cannot figure out. Here is the question.
"Write a program that reads in an integer that is greater than 1,000 and less than 1,000,000. Recall that the number must be entered without a comma. Display the number with a comma inserted where it belongs. (Hint: use the % operator.)
I can't figure out what variables I will need, and what values to assign them to. This one is really annoying me, so anyone that can offer any help will be appreciated. Thanks.