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
Explain stack unwinding.
Why is standard template library used?
What is lvalue?
Explain virtual class?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
Can non-public members of another instance of the class be retrieved by the method of the same class?
What do you mean by translation unit in c++?
Can malloc be used in c++?
What does std mean in c++?
How can virtual functions in c++ be implemented?
. If employee B is the boss of A and C is the boss of B and D is the boss of C and E is the boss of D. Then write a program using the Database such that if an employee name is Asked to Display it also display his bosses with his name. For eg. If C is displayed it should also display D and E with C?
What is the purpose of ios::basefield in the following statement?
List down the guideline that should be followed while using friend function.
What will the line of code below print out and why?
How the endl and setw manipulator works?