fork download
  1. #include <stdio.h>
  2. int main () {
  3. int x = 10;
  4. int y = 20;
  5. int p = x + y;
  6. x+=2;
  7. if (x < p && y < p) { // Fixed condition
  8. printf("Both %d and %d are less than %d", x,y,p);
  9. return 0;
  10.  
  11. }
  12. return 0;
  13. }
  14.  
  15.  
Success #stdin #stdout 0.01s 5320KB
stdin
Standard input is empty
stdout
Both 12 and 20 are less than 30