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 is implicit pointer in c++?
What are manipulators in c++ with example?
What is a tree in c++?
What is the latest c++ standard?
What do c++ programmers do?
What is the use of volatile variable?
Define pure virtual function?
By using c++ with an example describe linked list?
How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?
Where must the declaration of a friend function appear?
What does the linker do?
What is the real purpose of class – to export data?
What is problem with overriding functions?
What is else syntax in c++?
What is this pointer in c++?