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
Differentiate between full, complete & perfect binary trees.
What is the difference between union and structure in c?
How many levels of indirection in pointers can you have in a single declaration?
What is a macro, and explain how do you use it?
Is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
Define Spanning-Tree Protocol (STP)
How can you check to see whether a symbol is defined?
What is array within structure?
What is output redirection?
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
What is main () in c language?
What are the two forms of #include directive?
What does c in a circle mean?
Explain how do you use a pointer to a function?
Can I initialize unions?