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
What is object in c++ example?
Why do we use vector in c++?
What is prototype in c++ with example?
How would you obtain segment and offset addresses from a far address of a memory location?
How do I start a c++ project?
What is difference between c++ and c ++ 14?
Define a conversion constructor?
What is the arrow operator in c++?
What is the use of structure in c++?
How new/delete differs from malloc()/free?
Do you know the problem with overriding functions?
How do I use arrays in c++?
Briefly describe a B+ tree. What is bulk loading in it?
What is an html tag?
What is #include iostream in c++?