source file name: odevens.CPP
#include<stdio.h>
#include<conio.h>
#include<iostream.h>
int main()
{
int n;
//clrscr();
cout<<"\n enter any no.";
cin>>n;
if(n%2==0)
cout<<"\n given no is even";
else
cout<<"\n given no is odd";
if(n>0)
cout<<"\n given no +ve ";
else
{
if(n==0)
cout<<"\n given no Zero";
else
cout<<"\n given no -ve";
}
return 0;
}
output:
0 Comments
Post a Comment