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

Is rust better than c++?

1124


What is the use of endl in c++?

1023


What are the important differences between c++ and java?

1158


Is map sorted c++?

1015


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

1188


What is scope operator in c++?

1086


Is ca high or low level language?

1089


What is the best free c++ compiler for windows?

1112


What are the differences between new and malloc?

1139


What is the difference between mutex and binary semaphore?

1247


Implement stack operations with pointers with appropriate exception checks.

987


Define a conversion constructor?

1102


How the keyword struct is different from the keyword class in c++?

1044


Evaulate: 22%5 a) 2 b) 4 c) 0

1096


What is the difference between new() and malloc()?

2089