运行下列程序,若输入: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;
}
7.96
8.00
7.9
8.0