Q1: You will be given two positive integers, a and b (a 9 and it is an even number then print "even". • Else if n>9 and it is an odd number, then print "odd". • Check that a>=b and a,b>0(Positive)....


i need it ASAP please


Q1: You will be given two positive integers, a and b (a <= b).<br>• If 1<=n<=9, the print the English representation of it in lowercase.<br>That is, 9 and it is an even number then print "even". • Else if n>9 and it is an odd number, then print "odd". • Check that a>=b and a,b>0(Positive). Write cerr and return a non- zero value if this condition does not hold. Example: 8 11 Output : eight nine even odd #include using namespace std; int main() { int a,b; cout <« "enter="" the="" first="" number:";="" cin="">> a; cout <« "enter="" the="" second="" number:";="" cin="">> b; //you code here } "/>
Extracted text: Q1: You will be given two positive integers, a and b (a <= b).="" •="" if=""><><=9, the="" print="" the="" english="" representation="" of="" it="" in="" lowercase.="" that="" is,="" "one"="" for="" 1,"="" two"="" for="" 2="" and="" so="" on.="" else="" if="" n="">9 and it is an even number then print "even". • Else if n>9 and it is an odd number, then print "odd". • Check that a>=b and a,b>0(Positive). Write cerr and return a non- zero value if this condition does not hold. Example: 8 11 Output : eight nine even odd #include using namespace std; int main() { int a,b; cout <« "enter="" the="" first="" number:";="" cin="">> a; cout <« "enter="" the="" second="" number:";="" cin="">> b; //you code here }

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here