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
Should I learn c++ c?
What is c++ manipulator?
Is c++ built on c?
Is c++ a high level language?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
What are the types of pointer?
What is the difference between the functions rand(), random(), srand() and randomize()?
Which bit wise operator is suitable for putting on a particular bit in a number?
How many types of modularization are there in c++?
Explain pass by value and pass by reference.
What are the various situations where a copy constructor is invoked?
What is virtual function? Explain with an example
Explain the differences between list x; & list x();.
What are namespaces in c++?
How many types of classes are there in c++?