#include <iostream>int main(){ int a=7;if (a%2!=0){std::cout<<"a is odd";}else{std::cout<<"a is even";}return 0;}
Standard input is empty
a is odd
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!