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
How does c++ sort work?
Which is best ide for c++?
What are the advantages of c++?
What is the c++ code?
What is name hiding in c++?
Write a program which employs Recursion
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
When one must use recursion function? Mention what happens when recursion functions are declared inline?
What does new in c++ do?
Can we delete this pointer in c++?
What is the need of a destructor? Explain with the help of an example.
Is string data type in c++?
What are friend functions in C++?
What does catch(…) mean?
What is the full name of logo?