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 is the difference between the functions memmove() and memcpy()?
Why is c++ a mid-level programming language?
What is a modifier in c++?
What are the different types of comments allowed in c++?
How do I start a c++ project?
Can member functions be private?
What are the advantages of inheritance in c++?
Why do we need runtime polymorphism in c++?
How do we balance an AVL Tree in C++?
Explain about vectors in c ++?
What does it mean to declare a destructor as static?
Are php strings immutable?
What is the keyword auto for?
What are virtual constructors/destructors?
What is std :: flush?