topical media & game development
cout << "Enter a number: ";
cin >> number;
cout << "Thank you. The remainder after dividing your number by 8 is "
<< number - ((number >> 3) << 3);
cout << endl;
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.