A pretty little bug in my code, need advice?

  • From: Jes <theeternalkid@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Wed, 7 Jul 2010 11:38:59 -0400

Although the syntax of the code appears to be fine, I'm experiencing a nice 
little bug where all of the variables are being added and the result divided up 
in the same pass. This causes the prog to generate off the wall numbers. For 
example, if you put the number 8 for all three values, when it divides by 3, it 
gives you something like 18.6.
As far as I can tell, and somebody correct me if I'm wrong, What I need to do 
is to have the program press an enter after each value  is added. How do I 
implement this in my code?
Thanks
Jes

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

Other related posts: