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


Please Help Members By Posting Answers For Below Questions

Explain stack unwinding.

819


Why is standard template library used?

764


What is lvalue?

901


Explain virtual class?

759


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.

2273






Can non-public members of another instance of the class be retrieved by the method of the same class?

788


What do you mean by translation unit in c++?

925


Can malloc be used in c++?

769


What does std mean in c++?

785


How can virtual functions in c++ be implemented?

808


. 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?

2996


What is the purpose of ios::basefield in the following statement?

999


List down the guideline that should be followed while using friend function.

809


What will the line of code below print out and why?

502


How the endl and setw manipulator works?

729