• + 0 comments

    numerator, denominator = map(int, input().split())

    n = int(input())

    p = numerator/denominator

    q = 1-p

    answer = q**(n-1) * p

    print(round(answer,3))