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 function overloading c++?

1077


What do you mean by “this” pointer?

1072


What is meaning of in c++?

1216


What are pointers, when declared, intialized to a) NULL b) Newly allocated memory c) Nothing. Its random

1131


Write a program to find the Fibonacci series recursively.

1073


What is algorithm in c++ programming?

1126


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

1456


What is boyce codd normal form in c++?

1158


How many different levels of pointers are there?

1211


What is c++ array?

1120


What is a dangling pointer in c++?

1150


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

1113


What you know about structures in C++?

1079


What is flush () in c++?

1081


What is prototype in c++ with example?

1151