Would someone mind to take a look at my code to see what is wrong. I need a program should allow the sales manager to enter the number of registrants for as many companies as needed. When the sales manager has finished entering the data, the program should calculate and display the total number of people registered, the total charges for those registrants, and the average charge per registrants.
Actually I think your code is really far from meeting its requirements. It's not in the state to point WHAT is wrong. Did you review the code yourself? The loop, per example, doesn't make sense. Try getting the "totalReg += numReg;" out of this while block. The line inside the while block will never change the loop condition, resulting in a never ending loop.
Also, reg is being assigned, but never being used. You probably should put the input on the numReg variable instead of reg, and just get rid of reg.
You have some useless variables. Maybe I didn't understand the requirements, apart from this code looking like a homework "Complete the code..." style.