write a C++ programming :if the no is between 32 to 50 it
will be odd.

Answer Posted / debotri das

#include<iostream.h>
#include<conio.h>
void main()
{
int i=32;
clrscr();
while(i<=50)
{
if(i%2==0)
cout<<i<<"\n";
i++;
}
getch();
}

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the characteristics of friend functions?

567


Does c++ support multilevel and multiple inheritances?

552


What is #include iomanip?

548


What things would you remember while making an interface?

564


Distinguish between a # include and #define.

651






What is pointer in c++ with example?

518


What's the most powerful programming language?

595


Define private, protected and public access control.

609


Explain storage qualifiers in c++.

620


Does std endl flush?

609


List the issue that the auto_ptr object handles?

613


What is a multimap c++?

682


write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2251


Can a constructor return a value?

575


What do you mean by persistent and non persistent objects?

740