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 three numbers and the task is to find greatest among them.
Input: a = 46, b = 67, c = 21 Output: 67 Input: a = 9887, b = 4554, c = 212 Output: 9887
Approach is to consider the first number and compare it with other two numbers. Similarly, check with second and third.
Below is the required implementation:
Greatest number is 67
- Comparisons between SQL vs PLSQL
- Sum Of Two Numbers in PL/SQL
- GCD of two numbers in PL/SQL
- Swap two numbers in PL/SQL
- Sum and average of three numbers in PL/SQL
- Print all odd numbers and their sum from 1 to n in PL/SQL
- Print all even numbers from 1 to n in PL/SQL
- Swap two numbers in PL/SQL without using temp
- Convert the given numbers into words in Pl/SQL
- Finding sum of first n natural numbers in PL/SQL
- Display Sequence of Numbers in SQL Using LEVEL
- Prime number in PL/SQL
- Reverse a number in PL/SQL
- Sum of the first and last digit of a number in PL/SQL
- Factorial of a number in PL/SQL
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. 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.