RE: [Dev-C++] Peter You Problem I Solved the Problem.
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2001-03-07 09:22:35
|
Or mod() from cmath (math.h in C). Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Purohit Prahlad Jogaram Sent: Tuesday, March 06, 2001 5:17 PM To: dev...@li... Subject: [Dev-C++] Peter You Problem I Solved the Problem. In your Program You tried (km_travelled%1000) I guess you wanted to find the remainder when km_travelled divided by 1000 The Modulus Operator % works only with integers. If you want to find remainder use integer parsing. The Corrected Program Is Included Below.... |