Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- // This is UVA problem. No: 10929
- int main() {
- long long n;
- while(cin>>n) {
- if(n==0) return 0;
- if(n%11 == 0){
- printf("%lld is a multiple of 11\n", n);
- } else {
- printf("%lld is not a multiple of 11\n", n);
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement