The first line of the input contains an integer T(1<=T<=20) which means the number of test cases. Then T lines follow, each line consists of two positive integers, A and B. Notice that the integers are very large, that means you should not process them by using 32-bit integer. You may assume the length of each integer will not exceed 1000.
For each test case, you should output two lines. The first line is “Case #:”, # means the number of the test case. The second line is the an equation “A + B = Sum”, Sum means the result of A + B. Note there are some spaces int the equation. Output a blank line between two test cases.
int n, i = 0; scanf("%d", &n); char num1[1001]; char num2[1001]; while (i < n) { char res[1001]; int res_end_pos = 0; int temp = 0; int num1_end_pos = 0; int num2_end_pos = 0;
scanf("%s %s", num1, num2);
// 将下标计算到数值的个位。 while ('\0' != num1[num1_end_pos]) { num1_end_pos++; }
while ('\0' != num2[num2_end_pos]) { num2_end_pos++; }