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 / clearner

void odddesc(int n)
{
for(int i=(2*n-1);i>=1;i=1-2)
cout<<i<<endl;
}

Is This Answer Correct ?    5 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the types of array in c++?

1166


Is c++ a dying language?

1150


Write a program to show polymorphism in C++?

1148


What is abstraction in c++?

1356


Write a struct time where integer m, h, s are its members?

961


What is the use of endl in c++ give an example?

1169


What is runtime errors c++?

1122


What is do..while loops structure?

1150


What is a local variable?

1084


How many types of classes are there in c++?

1044


What is the benefit of learning c++?

990


What is c++ w3school?

1108


Do you know the problem with overriding functions?

1108


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

1161


What is meaning of in c++?

1216