Write a BASIC-256 program to accept the radius of the circle and print area and
Circumference of the circle.
Answers
Answered by
4
Language:
BASIC-256
Program:
input "Enter the radius: ", r
print "The circumference is: ", 2*3.14*r
print "The area is: ", 3.14*r*r
Output:
Enter the radius: 7
The circumference is: 43.96
The area is: 153.86
Explanation:
- Line 1: takes input in r.
- Line 2: Prints circumference.
- Line 3: Returns area.
Attachments:

Similar questions