Aim:
             To find the area of circle in SQL queries.

Algorithm:

Step 1: Start the program.

Step 2: Declare the float variable.

Step 3: Execute the formula area= 3.14 x radius x radius.

Step 4: Get the output.

Step 5: Stop the process.

Program

DECLARE
    radius float;
    area float;
BEGIN
    radius:=:radius;
    area:=3.14*radius*radius;
    dbms_output.put_line(' The Area Of Circle is: '||area);
END;

OUTPUT

The Area Of Circle is: 86.54625

Post a Comment

أحدث أقدم