Circle Area and Perimeter
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double number;
cin >> number;
double S = 3.1415 * number * number;
double P = 2 * 3.1415 * number;
cout.setf(ios::fixed);
cout.precision(2);
cout << S << endl;
cout << P << endl;
return 0;
}
Защо ми дава 40 от 100 при качване в judge?