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 / nagarajan n.

int n;
cout<<"enter a num:";
cin>>n;
for(int i=n;i>=1;i--)
{
if((i%2)!=0)
{
cout<<i<<"/t";
}
}

Is This Answer Correct ?    50 Yes 26 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What sorting algorithm does c++ use?

1159


What is object oriented programming (oop)?

1121


What is algorithm in c++ programming?

1133


What is the difference between C and CPP?

1169


What is c++ course?

1055


What are built-in functions? What is the syntax for the definition?

1087


Describe linked list using C++ with an example.

1090


When do we use copy constructors?

1088


Evaulate: 22%5 a) 2 b) 4 c) 0

1096


What is c++ 11 and c++ 14?

1058


How can you specify a class in C++?

1295


What does int * mean in c++?

1233


Do we have to use initialization list in spite of the assignment in constructors?

1007


Difference between an inspector and a mutator

1344


What can I use instead of namespace std?

1162