12 PL/SQL Programs and Code Examples on Variables and Constants

PL/SQL Programs and Code Examples on variables and constants

This section contains PL/SQL Programs and Code Examples on variables and constants with solutions, output and explanation. This collection of solved basic and difficult examples on PL/SQL programming will be very useful for beginners.

List of PL/SQL Programs and Code Examples on variables and constants covered here

The PL/SQL programs covered in this section range from basic to difficult and tricky. They cover:

1. PL/SQL block to define Variable
2. Find factorial of a number
3. Obtain Fibonacci series
4. Prime and Composite numbers
5. Area & Perimeter of Rectangle
6. Print odd numbers
7. Fahrenheit to Celsius conversion
8. Conversion of units of length
9. Classify as Child/Teen/Adult
10. Palindrome string
11. Reverse a given number
12. Print a no. digit by digit, as word series

For whom are these PL/SQL Programs and Code Examples on variables and constants useful?

All computer science freshers from BCA, BSc, BE, BTech, MCA and engineering students will find these solved Java Program questions useful for their university exam, lab exam, practicals, assignments, viva questions and campus placement. You can also use these program to practice for your written test.

All the programs have been compiled and run. So, let's write each program and see the output after execution!