-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d0cf0f7
commit 659a4ee
Showing
2 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
|
||
#include <iostream> | ||
#include <cmath> | ||
using namespace std; | ||
|
||
const double PI = acos(-1); | ||
|
||
int main() | ||
{ | ||
cout << "bruh" << endl; | ||
cout << "bruh momento"; | ||
double radius, area; | ||
|
||
cout << "Please enter the radius of the circle in inches: "; | ||
cin >> radius; | ||
|
||
cout << "PI = " << PI << endl; | ||
|
||
area = radius * radius * PI; | ||
|
||
cout << "\nA circle with a radius of " << radius | ||
<< " inches has an area of " | ||
<< area << " square inches.\n"; | ||
|
||
|
||
return 0; | ||
} | ||
|
||
|