Search:
Forum
Beginners
how can i make prime-number division rem
how can i make prime-number division remainder?
Feb 27, 2009 at 11:11am UTC
deerlittle7
(13)
where in, a number will be divided by a given prime divisor
(example:97) and extract the final last two digit decimal places.
example:
input number:24964
24964/97
=257.36/*the .36 value will be minus 1*/
=35 is the final answer
Feb 27, 2009 at 1:07pm UTC
Bazzy
(6281)
the % operator returns the remainder of an integral division
24964%97
returns 35
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs