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

void 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 ?    9 Yes 15 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is &x in c++?

981


What are the methods of exporting a function from a dll?

1210


How do you flush a buffer in c++?

1086


what are Operators and explain with an example?

1149


When do you call copy constructors?

1139


How does work in c++?

1061


Explain the different access specifiers for the class member in c++.

988


What is the difference between #import and #include in c++?

1090


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

1099


What is the use of "new" operator?

1115


Specify different types of decision control statements?

842


How do we balance an AVL Tree in C++?

1120


What is the difference between passing by reference and passing a reference?

1068


Why is c++ not purely object oriented?

994


What is the full form of stl in c++?

1181