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

Why is "using namespace std;" considered bad practice?

1098


What is the main use of c++?

1126


Explain what is oop?

1093


What is java and c++?

1172


Explain selection sorting?

1076


What are function prototypes?

1243


How is modularity introduced in C++?

1212


Can java be faster than c++?

1153


What are the five basic elements of a c++ program?

1110


Define pre-condition and post-condition to a member function in c++?

1150


How we can differentiate between a pre and post increment operators during overloading?

1107


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

1098


What is vectorial capacity?

1165


What is a string example?

1079


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

1120