Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

print first nodd numbers in descending order

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


Please Help Members By Posting Answers For Below Questions

How does c++ sort work?

993


Which is best ide for c++?

1026


What are the advantages of c++?

1916


What is the c++ code?

1187


What is name hiding in c++?

1173


Write a program which employs Recursion

1253


How do you instruct your compiler to print the contents of the intermediate file showing the effects of the preprocessor?

1158


When one must use recursion function? Mention what happens when recursion functions are declared inline?

1208


What does new in c++ do?

1032


Can we delete this pointer in c++?

1235


What is the need of a destructor? Explain with the help of an example.

1036


Is string data type in c++?

1046


What are friend functions in C++?

1083


What does catch(…) mean?

1130


What is the full name of logo?

1130