A program to find the area and circumference of a circle (Qbasic)

A program to find the area and circumference of a circle (Qbasic)
CLS
LET pie = 3.14
INPUT "Enter radius of circle"; r
a = pie * r ^ 2
c = 2 * pie * r
PRINT "The area of the circle is"; a
PRINT "The circumference of the circle is"; c
END

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.