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 object in c++ wikipedia?
Describe private, protected and public?
What are the two shift operators and what are their functions?
How new/delete differs from malloc()/free?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What is guard code in c++?
What is the difference between passing by reference and passing a reference?
What is extern c++?
What jobs can you get with a c++ certification?
Do class method definitions?
write asingle linked list which read from two list & the do the following 1 sort the prime & nonprime num (prime should be less tn nonprime) 2 each node has a prime num followd by nonprime 3 add a new node into its sutable plce 4 erase the most three duplicated non prime num 5 find the least duplicated prime num
what are function pointers?
Do you know what are pure virtual functions?
Which of the following is evaluated first: a) && b) || c) !
Do vectors start at 0 c++?