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 |
What is virtual base class uses?
What is pointer in c++ with example?
What is jump statement in C++?
What is null and void pointer?
write a program in c++ to generate imp z y x w v w x y z z y x w x y z z y x y z z y z z
If a function doesn’t return a value, how do you declare the function?
What is the difference between a template and a macro?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is c++ map?
What is the use of data hiding?
What is fixed in c++?
What is the use of function pointer?