You will be given two numbers and an operation to do with them. You just need to print the output of the numbers after doing the operation.
The digits you need to print are in the above image. Each digit is a 3 x 5 matrix filled with asterisk ('*') sign. Print the final absolute value of your output separated by a space for each digits.
First line of input will be () the number of test cases. Each test will contain a line having two integers and () and a character ('+', '-', '') denoting the addition ('+'), subtraction ('-'), multiplication ('') operation.
Output each case like following format: "Case #x:", where being the number of the case. And in a new line print absolute value of the desired output separated by space for each digits. Print a blank line after each case except the last one.
Input | Output |
---|---|
2 5 + 5 9 * 9 | Case #1: * *** * * * * * * * * * * *** Case #2: *** * * * * *** * * * * *** * |