Computer Science, asked by Anonymous, 4 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.
Formula
1. Area = 3.14 * radius * radius
2. Circumference = 2 * 3.14 * radius

Answers

Answered by anindyaadhikari13
22

Required Answer:-

Question:

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

Solution:

This is an easy question. We have to take input of the radius from the user and then we will calculate the area and perimeter. After that, we will print the area and perimeter of the circle.

Here is the program.

CLS

INPUT "Enter the Radius: ",R

A = 22/7 * R * R

P = 2 * 22/7 * R

PRINT "Area of the Circle is: " + A

PRINT "Perimeter of the Circle is: " + P

END

Answered by BrainlyProgrammer
7

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

Answer:-

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:-

  • A:- Area of the circle
  • C:- Circumference of the circle
  • R:- To accept Radius as input from the user

Learn more:-

  • https://brainly.in/question/32088672
Similar questions