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
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?
Differentiate between a copy constructor and an overloaded assignment operator.
How do you declare a set in c++?
What is pointer with example?
Why do we use classes in programming?
If there are two catch statements, one for base and one for derived, which should come first?
daily Routine of father
Write a note about the virtual member function?
Is there any function that can skip certain number of characters present in the input stream?
What is a constant reference?
What is prototype in c++ with example?
Does c++ vector allocate memory?
What are stacks? Give an example where they are useful.
Explain the different access specifiers for the class member in c++.
What are files in c++?