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.  
  10. }
  11. else {
  12. printf("Both %d and %d aren't less than %d", x,y,p);
  13.  
  14. }
  15. return 0;
  16. }
  17.  
  18.  
Success #stdin #stdout 0s 5308KB
stdin
Standard input is empty
stdout
Both 12 and 20 are less than 30