By using this site, you agree to our Privacy Policy and our Terms of Use. Close

Hi, I know this is stupid to ask, but the question is:

You have to give an "n" number and the computer has to tell you if it's pair or odd, here is how I have it:

#include <iostream.h>
#include <conio.h>
#include <math.h>

float n;
void main()
{
    cout<<"Put the number: "
   cin>>n
   ??????????
}