Answer Posted / shahbaz
void main()
{
int a,b;
cout<<"Enter number to check is it Even or Odd";
cin>>a;
if(a>=0)
{
if(a%2==0)
{
cout<<"The number is Even ";
}
else
{
cout<<"Number is Odd ";
}
}
else
{
Cout<<"Number is Lesser than Zero 0";;
}
getch();
}
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Explain high-order and low-order bytes.
c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above
What does it mean when the linker says that _end is undefined?
what do you mean by enumeration constant?
Differentiate fundamental data types and derived data types in C.
How many parameters should a function have?
What is #line used for?
praagnovation
What is an example of structure?
What is binary tree in c?
In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?
What is the difference between single charater constant and string constant?
Can 'this' pointer by used in the constructor?
Explain heap and queue.
How do you convert strings to numbers in C?