// "Group," by Katherine Scott and edited by Stephen Widdows. Written 10/2/95 // This program is based on the idea of "Group" with binary operation // "multiplication mod 5." Input two positive integers a and b and // the program will computer the group element "ab". #include #include //defines EXIT_SUCCESS etc int main ( ) { int a; int b; int g; cout << "Please enter two positive integers a and b.\n"; cin >> a >> b; g = (a + b) % 5; cout << "Group element ab is: " << g << "\n"; return EXIT_SUCCESS; }