单选题

运行下列程序,若输入:10,则输出结果是(    )。

#include <iostream>

#include <iomanip>

#include <cmath>

using namespace std;

int main()

{

    float r,c,s;

    cin >>c;

    r=c/3.14/2.0;

    s=3.14* pow(r,2);

    cout << setiosflags(ios::fixed);

    cout << setprecision(2)<<s<<endl;

    return 0;

}

A

7.96

B

8.00

C

7.9

D

8.0

赣ICP备20007335号-2