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 happens when you make call 'delete this;'?

1112


How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?

991


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

1037


What is a breakpoint?

1034


How would you find out if a linked-list is a cycle or not?

1019


What would happen on forgetting [], while deallocating an array through new?

1104


Is c++ used anymore?

1104


What is :: operator in c++?

1068


What is difference between c++ and c ++ 14?

1067


Does dev c++ support c++ 11?

1033


How to declare a pointer to an array of integers?

1152


Can union be self referenced?

1173


Write a c program for binary addition of two 8 bit numbers.

4133


What is the difference between set and map in c++?

1150


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1097