Problems
555 - Multiplication Table III
SUBMIT PROBLEM

Multiplication Table III

Time Limit: 0.5 sec

 

The Problem

Sam’s class tests are finished. Now she is making her code more users friendly. For this reason she wants to make such program where she can instructs program which number of multiplication table will make. From which point her multiplication table will be started & in which point the multiplication table will be terminated.

 

Example:

She gives 1 3 5 as input

1 * 3 = 3

1 * 4 = 4

1 * 5 = 5

 

But Sam is too small. She is only 6 years old. Can you help Sam to make the program?

 

The Input

The input file contains several cases. Each case contains three integer value x(x<= 1000000), m (0<=m<= 1000000) and n (0<=n<=1000000). Input is terminated by EOF.

 

The Output

For each case the output will print the case number and the desire table in a separate line.

 

Sample Input

1 3 5

10 15 18

 

Sample Output

Case 1:

1 X 3 = 3

1 X 4 = 4

1 X 5 = 5

Case 2:

10 X 15 = 150

10 X 16 = 160

10 X 17 = 170

10 X 18 = 180

 

 

 

 

Problem Setter: Samia Safa Ahmed