Kenya Ellerbee
Thursday, August 18, 2011
C++ program returning wrong value for simple equation?
you are dividing integers. the integral part of 5/10 is 0. use double instead if you what real numbers.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment