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 |
Explain the use of virtual destructor?
What are the unique features of C++.
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0
Is java the same as c++?
Is ca high or low level language?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Is swift faster than c++?
Is facebook written in c++?
if i want cin 12345678910 and cout abcdefghij. so how can i create the program?. example : if i key in 8910 so the answer is ghij.
what is a reference variable in C++?
Can you explain the term "resource acquisition is initialization?"
What is #include iostream?