Wednesday, 24 July 2013

PROGRAM OF EVEN/ODD

//PROGRAM OF EVEN/ODD
/*MADE BY KRISHNA AGARWAL*/
#include<iostream>
using namespace std;
int main()
{
    int n;
    cout<<"enter the value of n\n";
    cin>>n;
    if(n%2==0)
    cout<<"n is even no.";
    else
    cout<<"n is odd no.";
    return 0;
}

No comments:

Post a Comment