I'm having a problem with making this code work. I need it to find the average of four numbers that the user will submit. The code looks like it should work, but I'm getting really weird output when it runs. Anyone see something wrong with it? Any help would be appreciated. Thanks in advance!
Err, numberN is already double, integer division is not the problem here.
But using double constant explicitly is a good way to avoid problems if your program changes.
Thanks for all the help everyone. @MiiNiPaa- Tried your suggestion again, and it worked like it was supposed to. I'm not sure what the problem was before. Thank you! Thanks again for the extra suggestions everyone..