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
How many static variables are created if you put one static member into a template class definition?
Explain what data encapsulation is in c++?
Describe the syntax of single inheritance in C++?
Explain mutable storage class specifier.
What is array give example?
What are the extraction and insertion operators in c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is object oriented programming (oop)?
What is jump statement in C++?
What's the order in which the local objects are destructed?
Describe about storage allocation and scope of global, extern, static, local and register variables?
What does h mean in maths?
What is virtual destructor ans explain its use?
What does obj stand for?
What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0