You are viewing a single comment's thread. Return to all comments →
wht is the problem in this code , its not running
if(N%2!=0) { print("Weird"); } elseif(N%2==0 && N>2 && N<5) { print("Not Weird"); } elseif( N%2==0 && N>6 && N<20) { print("Weird"); } else(N%2==0 && N>20) { print("Not Weird"); }
} } }
Java If-Else
You are viewing a single comment's thread. Return to all comments →
wht is the problem in this code , its not running
if(N%2!=0) { print("Weird"); } elseif(N%2==0 && N>2 && N<5) { print("Not Weird"); } elseif( N%2==0 && N>6 && N<20) { print("Weird"); } else(N%2==0 && N>20) { print("Not Weird"); }