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

Can static member variables be private?

1111


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

1048


How many ways can a variable be initialized into in C++?

968


Which is the best c++ software?

1045


Write a program which employs Recursion

1191


Explain the benefits of proper inheritance.

1081


Is c++ still being used?

964


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

994


How is c++ used in the real world?

979


What is == in programming?

972


What is c++ hash?

1053


Explain about Virtual Function in C++?

972


Const char *p , char const *p What is the difference between the above two?

1151


What is the extraction operator and what does it do?

1031


When does a 'this' pointer get created?

1032