fork download
  1. /*shitft01-.*/
  2. #include <stdio.h>
  3.  
  4. int main(void) {
  5. // your code goes here
  6.  
  7. (3>5)?
  8. printf("3 is larger than 5\n"):printf("3 is smaller than 5\n");
  9.  
  10.  
  11. /* short a=12,b=100,c=-50;
  12.  
  13. printf("%d shift 1bit LeftSide---%d\n",a,a<<1);
  14. printf("More shift 1bit LeftSide---%d\n",a<<2);
  15. printf("More shift 1bit LeftSide---%d\n",a<<3);
  16. printf("More shift 1bit LeftSide---%d\n",a<<4);
  17. printf("\n");
  18.  
  19. printf("%d shift 1bit RightSide---%d\n",b,b>>1);
  20. printf("More shift 1bit RighttSide---%d\n",b>>2);
  21. printf("More shift 1bit RightSide---%d\n",b>>3);
  22. printf("More shift 1bit RightSide---%d\n",b>>4);
  23. printf("\n");
  24.  
  25. printf("%d shift 1bit LeftSide---%d\n",c,c<<1);
  26. printf("%d shift 1bit RightSide---%d\n",c,c>>1);
  27. printf("\n");
  28. */
  29.  
  30. return 0;
  31. }
  32.  
Success #stdin #stdout 0s 5316KB
stdin
Standard input is empty
stdout
3 is smaller than 5