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

#include <iostream>

using namespace std;

int main()
{
int num, x;
cout << "No. of odd numbers u want to find ";
cin >> num;
cout << "" << endl;
for(x = num; x <= num; x--){
if(x % 2 == 1){
cout << x << endl;
}
}
return 0;
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the functions memmove() and memcpy()?

1123


Why is c++ a mid-level programming language?

1041


What is a modifier in c++?

1155


What are the different types of comments allowed in c++?

993


How do I start a c++ project?

1082


Can member functions be private?

1007


What are the advantages of inheritance in c++?

1108


Why do we need runtime polymorphism in c++?

1027


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

1134


Explain about vectors in c ++?

1033


What does it mean to declare a destructor as static?

1086


Are php strings immutable?

1061


What is the keyword auto for?

1043


What are virtual constructors/destructors?

1027


What is std :: flush?

1080