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 is array give example?

1051


How does c++ sort work?

978


What is operators in c++?

1009


Which one is a preferred language C or C++? Why?

1094


Is overriding possible in c++?

1013


Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).

1111


What are the types of array in c++?

1166


Explain how functions are classified in C++ ?

1231


What is the use of string in c++?

1029


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

1250


Give 10 points of differences between C & C++.

1142


What is the use of register keyword with the variables?

943


What is the use of ::(scope resolution operator)?

1073


Explain the register storage classes in c++.

1188


What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h

1055