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
What is auto type c++?
Incase of a function declaration, what is extern means?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is the use of endl in c++ give an example?
What is the best c++ book?
Are strings immutable in c++?
Write my own zero-argument manipulator that should work same as hex?
Give example of a pure virtual function in c++?
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
Is c++ high level programming language?
How to give an alternate name to a namespace?
What is namespace & why it is used in c++?
What is std :: flush?
Define pointers?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?