write a C++ programming :if the no is between 32 to 50 it
will be odd.
Answer Posted / devi
#include<iostream.h>
#include<conio.h>
void main()
{
int i;
clrscr();
for(i=32;i<=50;i++)
{
if(i%2==1)
{
cout<<"Odd Number is:"<<i<<endl;
}
}
getch();
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
How can we access protected and private members of a class?
What is a down cast?
Is c++ harder than java?
Is there finally in c++?
What is the standard template library (stl)?
Can we use this pointer in a class specific, operator-overloading function for new operator?
What is std namespace in c++?
What are the data types in c++?
What is searching? Explain linear and binary search.
Briefly describe a B+ tree. What is bulk loading in it?
When should overload new operator on a global basis or a class basis?
Can you pass an array to a function in c++?
Explain pass by value and pass by reference.
what are the iterator and generic algorithms.