单选题

运行下列程序,输出结果是( )。

#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;

}


A

0.66      0      0.67

B

0.67      1      0.66

C

0      0.6      0.66

D

0.666667      1      0.67

赣ICP备20007335号-2