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
What happens when you make call 'delete this;'?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What is a breakpoint?
How would you find out if a linked-list is a cycle or not?
What would happen on forgetting [], while deallocating an array through new?
Is c++ used anymore?
What is :: operator in c++?
What is difference between c++ and c ++ 14?
Does dev c++ support c++ 11?
How to declare a pointer to an array of integers?
Can union be self referenced?
Write a c program for binary addition of two 8 bit numbers.
What is the difference between set and map in c++?
Explain 'this' pointer and what would happen if a pointer is deleted twice?