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

What are the data types in c++?

991


What are associate containers?

1100


Is it possible to write a c++ template to check for a function's existence?

1079


What is == in programming?

1092


What is using namespace std in cpp?

1248


What is pure virtual function?

1110


Where is atoi defined?

1210


Is c++ fully object oriented?

1022


How do you remove an element from a set in c++?

1140


What is polymorphism in c++? Explain with an example?

1105


What are smart pointers?

2388


What is enum c++?

1341


What are function prototypes?

1295


Write about the local class and mention its use?

1138


What is the use of 'using' declaration in c++?

1198