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
Is empty stack c++?
Can there be at least some solution to determine the number of arguments passed to a variable argument list function?
What is namespace std; and what is consists of?
What are the benefits of operator overloading?
What is c++ iterator?
Define macro.
What is isdigit c++?
Where can I run c++ program?
What are function prototypes?
What is c++ similar to?
What is abstraction in c++?
What is a loop? What are different types of loops in c++?
What are c++ tokens?
Can I have a reference as a data member of a class? If yes, then how do I initialise it?
Is c++ an oop?