write a C++ programming :if the no is between 32 to 50 it
will be odd.
Answer Posted / 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 |
Post New Answer View All Answers
Distinguish between a # include and #define.
How is c++ used in the real world?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Is c++ a software?
What do you mean by overhead in c++?
What is the main function c++?
What is the difference between #import and #include?
Can we use this pointer inside static member function?
Explain function overloading and operator overloading.
What is the use of c++ programming language in real life?
How does c++ structure differ from c++ class?
What is pointer in c++ with example?
What is an html tag?
Define the process of error-handling in case of constructor failure?
What is runtime polymorphism in c++?