Latest Articles

WAP to Calculate the Area of a Circle

Question: 
Write a program that calculates the area of a circle. The formula for the area of a circle is pi times the radius squared.

Ans:

      CLS

      CONST PI=3.14159

      LET R = 8

      Area = PI*(R^2)

      PRINT "The area is :::" ; Area

      END


Ans in Image: