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 c++ redistributable?

1231


What is the real purpose of class – to export data?

1111


What does new return if there is insufficient memory to make your new object?

1036


What is c++ library?

1036


How to give an alternate name to a namespace?

1088


what are the iterator and generic algorithms.

1967


Difference between an inspector and a mutator

1339


Is c better than c++?

1067


Can you write a function similar to printf()?

1130


What is the difference between public and private data members?

1178


Explain the use of this pointer?

1156


Is there any difference between int [] a and int a [] in c++?

1020


What is abstract keyword in c++?

1074


write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

2006


Are there any special rules about inlining?

1083