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
Can we change the basic meaning of an operator in c++?
Is c++ vector a linked list?
What is static in c++?
How should runtime errors be handled in c++?
What are the operators in c++?
What is the purpose of the "delete" operator?
What is a singleton c++?
What is a class definition?
What is a .h file c++?
What is the prototype of printf function?
What is time_t c++?
What is double in c++?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What is DlgProc?
What is #include cstdlib in c++?