Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int number;
- while(cin >> number && number != 0) {
- if(number % 11 == 0) {
- cout << number << " is a multiple of 11." << endl;
- } else {
- cout << number << " is not a multiple of 11." << endl;
- }
- }
- cout << number << " is not a multiple of 11." << endl;
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement