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

Are vectors passed by reference c++?

519


What is an undefined behavior and sequence points

567


Is java easier than c++?

591


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

566


Difference between inline functions and macros?

598






Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

3047


What is std :: endl?

596


What are the syntactic rules to be avoid ambiguity in multiple inheritance?

635


what is a reference variable in C++?

666


Is it possible for a member function to delete the pointer, named this?

614


What will happen if a pointer is deleted twice?

725


What is the keyword auto for?

573


What are the characteristics of friend functions?

567


Do you know what are static and dynamic type checking?

620


What does #define mean in c++?

615