You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
332 B

#include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false); //读入输出优化的强迫症
printf("%.1f\n", 8.0 / 5.0); //保留一位小数
printf("%.2f\n", 8.0 / 5.0); //保留两位小数
printf("%.1f\n", 8 / 5); //实验6
printf("%d\n", 8.0 / 5.0); //实验7
return 0;
}