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

main()
{
int i,n,k;
cout>>"Enter the number:";
cin<<n;
k=n%2;
if(k==0)
n=n-1;

for(i=n;i<=n;i=1-2)
cout>>1;
}

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is == in programming?

995


What is prototype for that c string function?

1115


What is pure virtual function? Or what is abstract class?

1039


Out of fgets() and gets() which function is safe to use?

1115


Write a program to show polymorphism in C++?

1127


Where can I run c++ program?

1052


What do you mean by function overriding & function overloading in c++?

1160


What is the use of 'using' declaration in c++?

1127


Tell me difference between constant pointer and pointer to a constant.

1172


What is one dimensional array in c++?

1082


What are the various situations where a copy constructor is invoked?

1123


What is the difference between equal to (==) and assignment operator (=)?

1054


Mention the purpose of istream class?

1097


Does improper inheritance have a potential to wreck a project?

1128


Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?

1102