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 a set in c++?
why we cant create array of refrences
What is the header file for setw?
Difference between Operator overloading and Functional overloading?
Explain what is polymorphism in c++?
why and when we can declar member fuction as a private in the class?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What is the fastest c++ compiler?
What is size of null class?
What is virtual table?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
How many types of classes are there in c++?