conditional statement

how do i turn this into if/else statement

 
  cout << (((num % 2) == 0) ? "Even\n" : "Odd\n");
if ( num % 2 == 0 ) cout << "Even\n";
else cout << "Odd\n";
Last edited on
Topic archived. No new replies allowed.