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 pre-processor in C++?
Is c++ a programming language?
What is expression parser in c++
Is map ordered c++?
What is basic if statement syntax?
which operator is used for performing an exponential operation a) > b) ^ c) none
In a function declaration what does extern means?
What are manipulators in c++ with example?
Why we use #include conio h in c++?
Explain the term memory alignment?
How is static data member similar to a global variable?
What are the advantages of using pointers in a program?
What is c++ iterator?
which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?
Why is c++ so fast?