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 using namespace std in cpp?

1161


Can I learn c++ without knowing c?

1061


What is iterator in c++?

1112


What are the basic data types used in c++?

1040


What are shallow and deep copies?

1115


Distinguish between new and malloc and delete and free().

1022


Where is atoi defined?

1144


Explain what are accessor methods?

1124


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3920


What relational operators if statements in c++?

1180


Why are pointers not used in c++?

1138


Explain what is class definition in c++ ?

1126


How can you link a c program with a c function?

1076


What are proxy objects in c++?

1183


What is linked list in c++?

1134