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 / vaishnavi

#include<iostream.h>
void main()
{
int i,n;
cout<<"Enter the number:"
cin>>n;
for(i=2*(n-1);i>=1;i=i-2)
{
cout<<i;
}
}

Is This Answer Correct ?    8 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1007


How many standards of c++ are there?

1050


What is the purpose of ios::basefield in the following statement?

1199


Why do we use structure in c++?

999


Can we delete this pointer in c++?

1155


What does h mean in maths?

1106


What is pointer to array in c++?

1079


How do you write a function that can reverse a linked-list?

1052


What are friend classes? What are advantages of using friend classes?

1043


How do I make turbo c++ full screen?

1025


When does a name clash occur in c++?

1107


What is a multiset c++?

1076


Difference between Abstraction and encapsulation in C++?

1073


What problems might the following macro bring to the application?

981


What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?

1060