fork download
  1. #include <iostream>
  2. int main()
  3. {
  4. int a=5;
  5. if(a%2!=0){
  6. std::cout<<a<<"is odd";
  7. }else{
  8. std::cout<<a<<"is even";
  9. }
  10. return 0;
  11. }
Success #stdin #stdout 0.01s 5304KB
stdin
Standard input is empty
stdout
5is odd