Two digits d1 and d2 will be passed as input. The program must print the Nth number in the
number system that consists only digits with d1 and d2.
Input Format
The first line contains d1
The second line contains d2
The third line contains N
Boundary Conditions:
0 <= d 1 <=9
0 <= d2 <=9
d1 is not equal to d2
Output Format:
The value of the number as per the given conditions.
Example Input/Output 1:
Input:
3
4
2
Output:
ch
Answers
Answered by
0
Answer:
is this computer ️ science
Similar questions