Given rational number is 35/50
35/50 = 7/10
p/q is terminating if
a) p and q are co-prime &
b) q is of the form of 2n 5m where n and m are non-negative integers.
Firstly, we check co-prime
7 = 1 × 7
10 = 2 × 5
7 and 10 have no common factor
Therefore, 7 and 10 are co-prime.
Now, we have to check that q is in the form of 2n5m
10 = 51 × 21
So, denominator is of the form 2n5m where n = 1 and m = 1
Thus, 35/50 is a terminating decimal.