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
What do you mean by vtable and vptr in c++?
What does asterisk mean in c++?
What does ctime() do?
Is it legal in c++ to overload operator++ so that it decrements a value in your class?
What gives the current position of the put pointer?
Who created c++?
What are advantages of c++?
What will the line of code below print out and why?
What is a memory leak c++?
What is the use of default constructor?
What are the uses of c++ in the real world?
What is the most common mistake on c++ and oo projects?
Describe the advantages of operator overloading?
What is function prototyping?
How would perform Pattern Matching in C++?