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 features of c++?

1102


Can you please explain the difference between using macro and inline functions?

994


How much do coding jobs pay?

965


What does scope resolution operator do?

1050


Can notepad ++ run c++?

1004


What is late binding c++?

926


What is the difference between a type-specific template friend class and a general template friend class?

931


Define a pointer to a data member of the type pointer to pointer?

937


Explain mutable storage class specifier.

1031


Specify different types of decision control statements?

800


Why is c++ difficult?

989


How do I run a program in notepad ++?

1043


Discuss the possibilities related to the termination of a program before entering the mainq method?

900


What is an orthogonal base class in c++?

1092


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

972