I need to write a function named:

int getNumAccidents()

the function is passed the names of a region within a city (north, south, east, west) The function also asks the user for the number of car accidents in that region, then returns that number. The function will be called once for each region.

I cannot figure out how to do this without using a void function. Because I have to ask the user to input an accident figure, it runs the cout statement asking for the numAccidents when I just want to return the figure, not run the whole content of the function.

anyone have some ideas?