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 does it mean to declare a member function as static?
Why do we use using namespace std in c++?
What is iterator in c++?
Why do we use classes in programming?
Define upcasting.
What are the uses of typedef in a program?
List the special characteristics of constructor.
Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort
What is class definition in c++ ?
How would you use the functions randomize() and random()?
What is function prototyping? What are its advantages?
What are the classes in c++?
Why do we learn c++?
What is c++ hash?
Describe the role of the c++ in the tradeoff of safety vs. Usability?