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 are the stages in the development cycle?
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
What is #include sstream?
Explain the benefits of proper inheritance.
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
Why should you learn c++?
What is the use of lambda in c++?
describe private access specifiers?
Does c++ vector allocate memory?
What is the basic structure of a c++ program?
What does count ++ do in c++?
Where must the declaration of a friend function appear?
Is it possible for a member function to delete the pointer, named this?
Does improper inheritance have a potential to wreck a project?
What are compilers in c++?