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 are the data types in c++?
What are associate containers?
Is it possible to write a c++ template to check for a function's existence?
What is == in programming?
What is using namespace std in cpp?
What is pure virtual function?
Where is atoi defined?
Is c++ fully object oriented?
How do you remove an element from a set in c++?
What is polymorphism in c++? Explain with an example?
What are smart pointers?
What is enum c++?
What are function prototypes?
Write about the local class and mention its use?
What is the use of 'using' declaration in c++?