write a C++ programming :if the no is between 32 to 50 it
will be odd.
Answer Posted / amit
void main()
{
int i,r;
for(i=32;i<=50;i++)
{
if(i%2!=0)
{
cout<<"odd"<<i
}
}
getch();
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Post New Answer View All Answers
Which bit wise operator is suitable for putting on a particular bit in a number?
In the derived class, which data member of the base class are visible?
what is a class? Explain with an example.
What does return 0 do in c++?
Difference between pointer to constant vs. Pointer constant
Why do we need templates?
What is math h in c++?
How many static variables are created if you put one static member into a template class definition?
What is c++ vb?
What are manipulators used for?
how to access grid view row?
Can a class be static in c++?
How do you find out if a linked-list has an end? (I.e. The list is not a cycle)
Write about the scope resolution operator?
What are the various arithmetic operators in c++?