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 using namespace std in cpp?
Can I learn c++ without knowing c?
What is iterator in c++?
What are the basic data types used in c++?
What are shallow and deep copies?
Distinguish between new and malloc and delete and free().
Where is atoi defined?
Explain what are accessor methods?
Write an algorithm that determines whether or not an almost complete binary tree is a heap.
What relational operators if statements in c++?
Why are pointers not used in c++?
Explain what is class definition in c++ ?
How can you link a c program with a c function?
What are proxy objects in c++?
What is linked list in c++?