pi in c 2b 2b with cmath

Solutions on MaxInterview for pi in c 2b 2b with cmath by the best coders in the world

showing results for - "pi in c 2b 2b with cmath"
Kai
08 Feb 2016
1#include <iostream>
2#include <cmath>
3using namespace std;
4float area(int radius) {
5   return M_PI * (radius * radius);
6}
7int main () {
8   cout << "Area of a circle with radius 7 unit is: " << area(7);
9}
similar questions
queries leading to this page
pi in c 2b 2b with cmath