Question:

http://uva.onlinejudge.org/external/104/10424.html

Solution:

1. Take 2 strings input. adjust the values of each character according to the problem describes. (here it was stored in ans1 and ans2 variables)

2. Then make the sum of these numbers until it comes in one digit. (here it is done in temp1 and temp2 variables)

3. Answer the value of the two ratio in percentage for the larger value of temp1 and temp2.

http://uva.onlinejudge.org/external/104/10424.html

Solution:

1. Take 2 strings input. adjust the values of each character according to the problem describes. (here it was stored in ans1 and ans2 variables)

2. Then make the sum of these numbers until it comes in one digit. (here it is done in temp1 and temp2 variables)

3. Answer the value of the two ratio in percentage for the larger value of temp1 and temp2.