【例7.1】保留3位小数
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
说明
读入一个浮点数,保留 位小数输出这个浮点数。
输入格式
只有一行,一个浮点数 ()。
输出格式
也只有一行,保留位小数的浮点数。
样例
12.34521
12.345
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
读入一个浮点数,保留 3 位小数输出这个浮点数。
只有一行,一个浮点数 x(−105≤x≤105)。
也只有一行,保留3位小数的浮点数。
12.34521
12.345
By signing up a 战码少年-战码青少年编程(专业信息学奥赛编程训练) universal account, you can submit code and join discussions in all online judging services provided by us.