fork download
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i = 15;
  8.  
  9. if (i%2 == 0)
  10. cout << i << " is even." << endl;
  11.  
  12. if (i < 20)
  13. cout << i << " is smaller than 20." << endl;
  14.  
  15. if (i*2 > 25)
  16. cout << i*2 << " is greater than 25." << endl;
  17.  
  18. return 0;
  19. }
Success #stdin #stdout 0.02s 2724KB
stdin
Standard input is empty
stdout
15 is smaller than 20.
30 is greater than 25.