write a C++ programming :if the no is between 32 to 50 it
will be odd.
Answers were Sorted based on User's Feedback
Answer / amit
void main()
{
int i,r;
for(i=32;i<=50;i++)
{
if(i%2!=0)
{
cout<<"odd"<<i
}
}
getch();
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / 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 |
Answer / 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 |
How do I run c++?
What is the use of cmath in c++?
how many controls can we place on single form.
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
Profiler in projects?
how many rounds and wt type of questios ask in the written test for first round 2. tech. round 3. and futher rounds
Which uses less memory? a) struct astruct { int x; float y; int v; }; b) union aunion { int x; float v; }; c) char array[10];
How many types of modularization are there in c++?
What is a container class? What are the types of container classes in c++?
Is c++ a low level language?
Why seem interrupt handlers as member functions to be impossible?
What gives the current position of the put pointer?