Answer Posted / dudelzy
#include <iostream>
using namespace std;
int main()
{
int num, x;
cout << "No. of odd numbers u want to find ";
cin >> num;
cout << "" << endl;
for(x = num; x <= num; x--){
if(x % 2 == 1){
cout << x << endl;
}
}
return 0;
}
Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What are the types of container classes?
Define copy constructor.
Is c++ an integer?
What is one dimensional array in c++?
Explain the concept of memory leak?
What is friend class in c++ with example?
What is c++ mutable?
What is the insertion operator and what does it do?
What is ios in c++?
What is a binary file? List the merits and demerits of the binary file usagein C++.
How can you quickly find the number of elements stored in a static array?
How would you call C functions from C++ and vice versa?
What are the uses of pointers?
Explain Text Manipulation Routines?
What is virtual table?