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 is the rule of three?

988


why and when we can declar member fuction as a private in the class?

2060


Explain stack & heap objects?

1028


Why can templates only be implemented in the header file?

1100


Can a built-in function be recursive?

1013


Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?

1062


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

2192


Which is best ide for c++?

1004


Define stacks. Provide an example where they are useful.

998


Why was c++ created?

1018


What is iterator in c++?

1097


Define the operators that can be used with a pointer.

1029


Is there finally in c++?

1092


Can char be a number c++?

1033


What is static function? Explain with an example

1056