#include<bits/stdc++.h>
using namespace std;
int main ()
{
double A, n, R, Square_of_R;
cin >> R;
Square_of_R = pow(R,2);
n = 3.14159;
A = n * Square_of_R;
cout << "A=" << fixed << setprecision(4) << A << endl;
//printf("A=%.4lf", A);
return 0;
}
Code Example |
---|
Cpp :: c++ hashmaps |
Cpp :: selection sort c++ algorithm |
Cpp :: detect cycle in an undirected graph |
Cpp :: string split by space c++ |
Cpp :: pragma cpp |
Cpp :: c++ struct |
Cpp :: c++ filesystem read directory |
Cpp :: argument vs parameter coding c++ |
Cpp :: float to int c++ |
Cpp :: string search c++ |
Cpp :: c detect os |
Cpp :: letter occurrence in string c++ |
Cpp :: c++ erase remove |
Cpp :: c++ if example |
Cpp :: input n space separated integers in c++ |
Cpp :: gcc suppress warning inline |
Cpp :: inline c++ |
Cpp :: how to concatenate two vectors in c++ |
Cpp :: factorial of large number |
Cpp :: c++ set swap |
Cpp :: inheritance example in C plus plus |
Cpp :: iostream c++ |
Cpp :: Fisher–Yates shuffle Algorithm c++ |
Cpp :: c++ std string to float |
Cpp :: how to convert hexadecimal to decimal in c++ |
Cpp :: min heap stl |
Cpp :: balanced parentheses |
Cpp :: nullptr c++ |
Cpp :: iomanip header file in c++ |
Cpp :: unordered_map c++ |