Computer Science, asked by Anonymous, 3 months ago

Write a QBASIC program to take input of radius from the user. Calculate and
display Area and Circumference of a circle with a proper message. [10M]
Formula
1. Area = 3.14 * radius * radius
2. Circumference = 2 * 3.14 * radius

Answers

Answered by BrainlyProgrammer
6

Question:-

  • Write a QBASIC program to take input of radius from the user. Calculate and display Area and Circumference of a circle with a proper message.

Formula:-

  1. Area = 3.14 * radius * radius
  2. Circumference = 2 * 3.14 * radius

_________

Code:-

CLS

PRINT "ENTER RADIUS OF THE CIRCLE"

INPUT R

A= 3.14*R*R

C=2*3.14*R

PRINT "AREA"+A

PRINT "CIRCUMFERENCE"+C

END

_______

Variable Description:-

  1. C :- To store circumference of the circle.
  2. A :- To store Area of the circle.
  3. R :- To accept input from the user.
Similar questions