Prerequisite – PL/SQL introduction
In PL/SQL code groups of commands are arranged within a block. A block group related declarations or statements. In declare part, we declare variables and between begin and end part, we perform the operations.
Given the radius of a circle and the task is to find the area and perimeter of the circle.
Input: 3 Output: Area = 28.26 Perimeter = 18.84 Input: 7 Output: Area = 153.86 Perimeter = 43.96
Formula for area and perimeter of circle:
pi * radius * radius
2 * pi * radius
where pi = 3.14
Below is the required implementation:
Area = 28.26 Perimeter = 18.84
- Area and Perimeter of Rectangle in PL/SQL
- Find the area and perimeter of right triangle in PL/SQL
- PLSQL | LOG Function
- PLSQL | ABS Function
- PLSQL | LEAST Function
- PLSQL | LN Function
- PLSQL | EXP Function
- PLSQL | TAN Function
- PLSQL | CHR Function
- Difference between SQL and PLSQL
- PLSQL | SIN Function
- PLSQL : || Operator
- PLSQL | COS Function
- PLSQL | MOD Function
- PLSQL | ACOS Function
- PLSQL | CEIL Function
- PLSQL | TRANSLATE Function
- PLSQL | ASIN Function
- PLSQL | FLOOR Function
- PLSQL | ATAN Function
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.