Advertisement
shahan953

Untitled

Oct 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. // This is UVA problem. No: 10929
  4. int main() {
  5.     long long n;
  6.     while(cin>>n) {
  7.         if(n==0) return 0;
  8.         if(n%11 == 0){
  9.             printf("%lld is a multiple of 11\n", n);
  10.         } else {
  11.             printf("%lld is not a multiple of 11\n", n);
  12.         }
  13.     }
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement