fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. int a=5, b=7, c,d,e,f;
  6. c=a&b;
  7. d=a|b;
  8. e=a^b;
  9. f=~b;
  10. a=a>>1;
  11. b=b<<3;
  12. printf("%d, %d, %d, %d, %d, %d\n",a,b,c,d,e,f);
  13. return 0;
  14. }
  15.  
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
2, 56, 5, 7, 2, -8