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
What are global variables?
What’s a signal? Explain what do I use signals for?
using only #include
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
What is difference between array and pointer in c?
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Who developed c language?
Explain threaded binary trees?
How many main () function we can have in a project?
What is the difference between the local variable and global variable in c?
Tell me can the size of an array be declared at runtime?
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
which of the following shows the correct hierarchy of arithmetic operations in C a) (), **, * or/,+ or - b) (),**,*,/,+,- c) (),**,/,*,+,- d) (),/ or *,- or +
Write a program to reverse a string.
What are the __date__ and __time__ preprocessor commands?