Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- #include <math.h>
- using namespace std;
- const double pi = 3.1415926;
- int main()
- {
- float r;
- cout << "Enter the radius value: ";
- cin >> r;
- cout << "The square is: " << pi * pow(r, 2) << endl;
- return EXIT_SUCCESS;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement