Problem1254--保留n位小数

1254: 保留n位小数

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 135  Solved: 44
[Status] [Submit] [Creator:]

Description

输入三个正整数a,b,n,输出a除以b的值,要求计算结果精确到小数点后n(1<=n<=200)位

Sample Input Copy

1 3 4

Sample Output Copy

0.3333

HINT

输入:2017 27 10
输出:74.7037037037
模拟除法过程,不用格式函数setprecision

Source/Category

 基础B