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
Are vectors passed by reference c++?
What is an undefined behavior and sequence points
Is java easier than c++?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
Difference between inline functions and macros?
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
What is std :: endl?
What are the syntactic rules to be avoid ambiguity in multiple inheritance?
what is a reference variable in C++?
Is it possible for a member function to delete the pointer, named this?
What will happen if a pointer is deleted twice?
What is the keyword auto for?
What are the characteristics of friend functions?
Do you know what are static and dynamic type checking?
What does #define mean in c++?