No. I have no idea who DAX is.
No. I have no idea who DAX is.
PSP hacks, M33?
The "." is only valid for objects, since it's an operator. You're comparing numbers, so it's invalid. Remove it.
IFs do not use a semicolon ( ; ) after it. If you put it there, it the same as removing the entire if because you're telling the compiler to do the IF but nothing to do IF the IF is true. Thus it will optimize it away.
Should be else if (num % 2 == 0) since you've already checked for 1.Code:else if(num%2==1);{ cout<<"The number is pair\n"; }
1. is shorthand for 1.0.
num is an integer.
And 1. is silly and confusing, make it 1.0 or 1.0f or better yet, just 1, since num is an integer and % returns an integer.