int a, b; cin >> a >> b; int n; cin >> n; int r = 0; cout << "0."; while(n--){ r = a * 10; cout << r / b; a = r - b * (r / b); }