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

which operator is used for performing an exponential operation a) > b) ^ c) none

1044


What is an operator function? Describe the function of an operator function?

1129


What are the differences between the function prototype and the function defi-nition?

1083


Difference between class and structure.

1146


What are the three forms of cin.get() and what are their differences?

1218


What is c++ iterator?

1122


Explain how functions are classified in C++ ?

1214


What is the use of typedef?

1085


What is the best ide for c++?

1088


How a pointer differs from a reference?

1321


What is a container class?

1123


Write a Program to find the largest of 4 no using macros.

1073


What is namespace & why it is used in c++?

1103


Can we use struct in c++?

1014


What is the use of setfill in c++?

1065