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
which operator is used for performing an exponential operation a) > b) ^ c) none
What is an operator function? Describe the function of an operator function?
What are the differences between the function prototype and the function defi-nition?
Difference between class and structure.
What are the three forms of cin.get() and what are their differences?
What is c++ iterator?
Explain how functions are classified in C++ ?
What is the use of typedef?
What is the best ide for c++?
How a pointer differs from a reference?
What is a container class?
Write a Program to find the largest of 4 no using macros.
What is namespace & why it is used in c++?
Can we use struct in c++?
What is the use of setfill in c++?