EXPERIMENT 9(Basic Plsql Operators)[1]
EXPERIMENT 9(Basic Plsql Operators)[1]
Exercise 2: Write a PL/SQL block to calculate the perimeter of a square using user
input. Assume the length of the square is given by the user.
Exercise 7: Write a PL/SQL block to declare a variable x and assign it the value
10. Then, display the value of x.
Exercise 8: Write a PL/SQL block to calculate the sum of two numbers (e.g., 5
and 7) and display the result.
Exercise 9: Write a PL/SQL block to find the maximum of three numbers (e.g.,
10, 25, and 15) and display the result.
Exercise 10: Write a PL/SQL block to calculate the area of a rectangle using the
length and width provided by the user.
Exercise 11: Write a PL/SQL block to convert temperature from Celsius to
Fahrenheit. Assume the temperature in Celsius is provided by the user.
Exercise 12: Write a PL/SQL block to calculate the simple interest for a loan.
Assume principal amount, rate of interest, and time period are provided by the
user.