Write a program which takes as input a character followed by two integers. If the character is +' then the program outputs the sum of the two integers If the character is *' then the program outputs...

c++languageWrite a program which takes as input a character followed by two integers. If the<br>character is +' then the program outputs the sum of the two integers If the character<br>is *' then the program outputs the product of the two integers<br>Here are some test case input/output string pairs:<br>•

Extracted text: Write a program which takes as input a character followed by two integers. If the character is +' then the program outputs the sum of the two integers If the character is *' then the program outputs the product of the two integers Here are some test case input/output string pairs: • "+ 0 0" H "0" • "+ 1 -1"H "0" • "+ 1 0"H "1" "+ 12 136" H "148" "* 0 0"H "0" • "* 1 -1" H "-1" • "* 1 0"H"0" "* 12 136" H "1632"

Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here