运行下列程序,输出结果是( )。
#include<iostream>
#include<iomanip>
using namespace std;
int main() {
float x =2/3.0;
cout << x << "";
cout << setiosflags(ios::fixed);
cout << setprecision(0) <<x << " ";
cout << setprecision(2) <<x << "\n";
return 0;
}
0.66 0 0.67
0.67 1 0.66
0 0.6 0.66
0.666667 1 0.67