Answer Posted / nagarajan n.
int n;
cout<<"enter a num:";
cin>>n;
for(int i=n;i>=1;i--)
{
if((i%2)!=0)
{
cout<<i<<"/t";
}
}
| Is This Answer Correct ? | 50 Yes | 26 No |
Post New Answer View All Answers
What sorting algorithm does c++ use?
What is object oriented programming (oop)?
What is algorithm in c++ programming?
What is the difference between C and CPP?
What is c++ course?
What are built-in functions? What is the syntax for the definition?
Describe linked list using C++ with an example.
When do we use copy constructors?
Evaulate: 22%5 a) 2 b) 4 c) 0
What is c++ 11 and c++ 14?
How can you specify a class in C++?
What does int * mean in c++?
Do we have to use initialization list in spite of the assignment in constructors?
Difference between an inspector and a mutator
What can I use instead of namespace std?