This page is still under construction.

Parts of this page are still being built. What you see may change.

A+B with case numbers

Time limit1sMemory limit256 MB

Summary
Read T pairs of single-digit integers and print each sum as Case #x: A + B = C.
Level

Easy1 of 10

Topics
Implementation
Solved
No attempts yet

Problem

Write a program that reads two integers AA and BB and prints A+BA+B. The input holds several test cases.

Input

The first line contains the number of test cases TT.

Each of the next TT lines holds one test case: two integers AA and BB separated by a single space. (0<A,B<100 < A, B < 10)

Output

For each test case, print one line in the format Case #x: A + B = C. Here xx is the test case number starting from 1, and CC is the value of A+BA+B.

Examples5

  1. Example 1

    Input
    5
    1 1
    2 3
    3 4
    9 8
    5 2
    
    Expected output
    Case #1: 1 + 1 = 2
    Case #2: 2 + 3 = 5
    Case #3: 3 + 4 = 7
    Case #4: 9 + 8 = 17
    Case #5: 5 + 2 = 7
    
  2. Example 2

    Input
    1
    1 1
    
    Expected output
    Case #1: 1 + 1 = 2
    
  3. Example 3

    Input
    1
    9 9
    
    Expected output
    Case #1: 9 + 9 = 18
    
  4. Example 4

    Input
    2
    9 1
    1 9
    
    Expected output
    Case #1: 9 + 1 = 10
    Case #2: 1 + 9 = 10
    
  5. Example 5

    Input
    4
    1 9
    9 1
    5 5
    4 6
    
    Expected output
    Case #1: 1 + 9 = 10
    Case #2: 9 + 1 = 10
    Case #3: 5 + 5 = 10
    Case #4: 4 + 6 = 10