Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int n;
- int z=0;
- while(scanf("%x",&n))
- {
- z=z+n;
- }
- if(z>15&&z%16==0 && z%10==6 && z%100/10==1)
- {
- printf("Poln pogodok");
- }
- else if(z%16==0)
- {
- printf("Pogodok");
- }
- else printf("%d",z);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement