#include <iostream>
using namespace std;
int main ( )
{
int num;
cout <<" Enter a number ";
cin >> num;
switch ( num % 2 )
{
case 0 :
cout <<" The number is even ";
break ;
case 1 :
cout <<" The number is odd ";
break ;
}
return 0 ;
}
No comments:
Post a Comment
Must drop your comments about post.