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

What do you mean by vtable and vptr in c++?

1043


What does asterisk mean in c++?

1121


What does ctime() do?

1143


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

1068


What gives the current position of the put pointer?

1002


Who created c++?

1070


What are advantages of c++?

1028


What will the line of code below print out and why?

744


What is a memory leak c++?

1144


What is the use of default constructor?

1101


What are the uses of c++ in the real world?

1042


What is the most common mistake on c++ and oo projects?

982


Describe the advantages of operator overloading?

1050


What is function prototyping?

1111


How would perform Pattern Matching in C++?

1242