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

Which bit wise operator is suitable for putting on a particular bit in a number?

1200


In the derived class, which data member of the base class are visible?

1114


what is a class? Explain with an example.

1135


What does return 0 do in c++?

1033


Difference between pointer to constant vs. Pointer constant

1121


Why do we need templates?

988


What is math h in c++?

1172


How many static variables are created if you put one static member into a template class definition?

1036


What is c++ vb?

1083


What are manipulators used for?

1091


how to access grid view row?

2229


Can a class be static in c++?

1090


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

1153


Write about the scope resolution operator?

1023


What are the various arithmetic operators in c++?

1115