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

Is empty stack c++?

1057


Can there be at least some solution to determine the number of arguments passed to a variable argument list function?

1061


What is namespace std; and what is consists of?

1374


What are the benefits of operator overloading?

1271


What is c++ iterator?

1218


Define macro.

1135


What is isdigit c++?

1150


Where can I run c++ program?

1111


What are function prototypes?

1293


What is c++ similar to?

1251


What is abstraction in c++?

1427


What is a loop? What are different types of loops in c++?

1177


What are c++ tokens?

1115


Can I have a reference as a data member of a class? If yes, then how do I initialise it?

1279


Is c++ an oop?

1193