fork download
  1. #include <stdio.h>
  2.  
  3. int contains(short twobytes, char onebyte)
  4. {
  5. int i=0;
  6. for (; i<8; i++)
  7. {
  8. if (onebyte == ((twobytes >> i) & 0xFF))
  9. return 1;
  10. }
  11. return 0;
  12. }
  13.  
  14. int main(void) {
  15. if (contains(0xE1E6, 0x3C))
  16. {
  17. printf("YES!\n");
  18. }
  19. else
  20. {
  21. printf("No :(\n");
  22. }
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 2248KB
stdin
Standard input is empty
stdout
YES!