Question
Please use C RevSum Jojo, Lili, and Bibi are playing a game. Jojo, Lili dan Bibi will play the game for T round. For each
Please use C
RevSum Jojo, Lili, and Bibi are playing a game. Jojo, Lili dan Bibi will play the game for T round. For each round, Lili will mention a positive integer N and Bibi will mention an integer which is the reverse of N , then Jojo will name a positive integer which is the sum of the integers mentioned by Lili and Bibi. For example, if Lili mentions 123, Bibi will mention 321 and Jojo will mention 444. Because Jojo is not very good at counting, help Jojo know what numbers he should mention. Format Input The input consists of integers T which is the number of test cases. The next T line is an integer N which is a positive integer mentioned by Lili. Format Output The output contains Case #X: Y where X is the test case number starting at 1 and Y is the number that Jojo must mention. Constraints 1 T 100 1 N 2 109 Sample Input 1 (standard input) 1 123 Sample Output 1 (standard output) Case #1: 444
Sample Input 2 (standard input) 2 10 11 Sample Output 2 (standard output) Case #1: 11 Case #2: 22
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started