GO Solution For UVa 10424 - Love Calculator. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

One day I asked Saima that how much she loves me. Her answer was “71.43%”. I was surprised as well as shocked by her answer. I could not understand why she didn’t tell 100% and why she told a particular and peculiar fraction like 71.43. Looking at my surprised, shocked and nervous face she burst out


You can find the full details of the problem Love Calculator at UVa Online Judge

Sample Input


Sample Output

71.43 %
100.00 %
100.00 %

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985