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

What is object in c++ example?

626


Why do we use vector in c++?

602


What is prototype in c++ with example?

564


How would you obtain segment and offset addresses from a far address of a memory location?

618


How do I start a c++ project?

587






What is difference between c++ and c ++ 14?

578


Define a conversion constructor?

617


What is the arrow operator in c++?

560


What is the use of structure in c++?

553


How new/delete differs from malloc()/free?

616


Do you know the problem with overriding functions?

573


How do I use arrays in c++?

584


Briefly describe a B+ tree. What is bulk loading in it?

801


What is an html tag?

631


What is #include iostream in c++?

591