• + 0 comments
    n,d = map(float,input().split());k = int(input());p = n/d
    print(round(sum((1 - p)**i * p for i in range(k)),3))