demonstrates remainder operator
#include <iostream> using namespace std; int main(){ cout << 6 % 8 << endl << 7 % 8 << endl << 8 % 8 << endl << 9 % 8 << endl << 10 % 8 << endl; return 0; }