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 the use of pointer in c++ with example?

1048


What is protected inheritance?

1055


How do you decide which integer type to use?

1017


What is virtual table?

1131


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

956


Which c++ operator cannot overload?

1023


What are the different types of polymorphism in c++?

1150


What is diamond problem in c++?

1005


Can I learn c++ in a week?

1081


What is a breakpoint?

1030


Write a program using display() function which takes two arguments.

1087


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

1086


Explain the difference between overloading and overriding?

1151


Why namespace is used in c++?

1075


What data encapsulation is in c++?

1162