0% found this document useful (0 votes)
4 views1 page

PL/SQL Programs for Basic Calculations

The document outlines several tasks to be accomplished using PL/SQL programming. These include calculating a candidate's result based on marks, determining if a number is positive, negative, or zero, checking if a number is even or odd, converting temperatures between Fahrenheit and Celsius, summing the first n numbers, printing prime numbers between 1 to 50, and checking if a number is prime using a goto statement with a for loop.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

PL/SQL Programs for Basic Calculations

The document outlines several tasks to be accomplished using PL/SQL programming. These include calculating a candidate's result based on marks, determining if a number is positive, negative, or zero, checking if a number is even or odd, converting temperatures between Fahrenheit and Celsius, summing the first n numbers, printing prime numbers between 1 to 50, and checking if a number is prime using a goto statement with a for loop.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

Write a PL/SQL block to accept marks of a candidate and find the result
of the candidate.
2. Write a PL/SQL program to check whether a given number is positive,
negative or zero.
3. Write a PL/SQL program to check whether a number is even or odd.
4. Write a PL/SQL program to convert a temperature in scale Fahrenheit to
Celsius and vice versa.
5. Write a program in PL/SQL to print addition of 1st n numbers.
6. Write a program in PL/SQL to print the prime numbers between 1 to 50.
7. Write a program in PL/SQL to check whether a number is prime or not
using goto statement with for loop.

You might also like