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...

write a C++ programming :if the no is between 32 to 50 it
will be odd.

Answer Posted / amit

void main()
{

int i,r;
for(i=32;i<=50;i++)
{
if(i%2!=0)
{
cout<<"odd"<<i
}
}

getch();
}

Is This Answer Correct ?    11 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is eclipse good for c++?

992


What is the difference between public, private, and protected access?

1010


What is c++ array?

1033


What are mutator methods in c++?

1110


Is it possible for a member function to use delete this?

1022


How many types of scopes are there in c++?

1035


In what situations do you have to use initialization list rather than assignment in constructors?

1012


Write an algorithm that determines whether or not an almost complete binary tree is a heap.

3872


What apps are written in c++?

1030


What is the best c++ book?

1212


What are the main features of c++?

968


What is protected inheritance?

1007


How the delete operator differs from the delete[]operator?

1049


Write some differences between an external iterator and an internal iterator?

970


What is meant by const_cast?

1071