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 / nagarajan n.

int n;
cout<<"enter a num:";
cin>>n;
for(int i=n;i>=1;i--)
{
if((i%2)!=0)
{
cout<<i<<"/t";
}
}

Is This Answer Correct ?    50 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the stages in the development cycle?

1041


If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?

1490


What is #include sstream?

1045


Explain the benefits of proper inheritance.

1136


What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack

1067


Why should you learn c++?

1008


What is the use of lambda in c++?

1008


describe private access specifiers?

1208


Does c++ vector allocate memory?

988


What is the basic structure of a c++ program?

1132


What does count ++ do in c++?

1193


Where must the declaration of a friend function appear?

944


Is it possible for a member function to delete the pointer, named this?

1137


Does improper inheritance have a potential to wreck a project?

1128


What are compilers in c++?

1053