Answer Posted / vaishnavi
#include<iostream.h>
void main()
{
int i,n;
cout<<"Enter the number:"
cin>>n;
for(i=2*(n-1);i>=1;i=i-2)
{
cout<<i;
}
}
| Is This Answer Correct ? | 8 Yes | 8 No |
Post New Answer View All Answers
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
How many standards of c++ are there?
What is the purpose of ios::basefield in the following statement?
Why do we use structure in c++?
Can we delete this pointer in c++?
What does h mean in maths?
What is pointer to array in c++?
How do you write a function that can reverse a linked-list?
What are friend classes? What are advantages of using friend classes?
How do I make turbo c++ full screen?
When does a name clash occur in c++?
What is a multiset c++?
Difference between Abstraction and encapsulation in C++?
What problems might the following macro bring to the application?
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?