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 equivalent of Pascal's Real a) unsigned int b) float c) char

973


What are manipulators in c++ with example?

1008


What is ios :: in in c++?

1002


what is Member Functions in Classes?

1117


What is enum class in c++?

1183


What are structures and unions?

952


What's c++ used for?

1057


What is the use of namespace std in C++?

1019


What is this weird colon-member (" : ") syntax in the constructor?

966


What is the difference between a "copy constructor" and an "assignment operator" in C++?

1020


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

940


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

1208


Is dev c++ free?

969


Which compiler does turbo c++ use?

1026


Write my own zero-argument manipulator that should work same as hex?

1000