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
Should I learn c or c++ or c#?
What is flush c++?
What is #include iostream?
How come you find out if a linked-list is a cycle or not?
What are the effects after calling the delete this operator ?
Can we define a constructor as virtual in c++?
What are shallow and deep copy?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
Explain virtual class?
What is the full form of ios?
What is friend class in c++ with example?
Why is "using namespace std;" considered bad practice?
Do you know the use of vtable?
declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator
Can c++ be faster than c?