Computer Science, asked by Anonymous, 5 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 allysia
3

Consider the attachment:

Attachments:
Answered by BrainlyProgrammer
2

Question:-

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

Code Language:-

  • QBASIC

QBASIC CODE:-

CLS

PRINT "ENTER A RADIUS"

INPUT R

C=2*3.14*R

A=3.14*R*R

PRINT "AREA="+A

PRINT "CIRCUMFERENCE="+C

END

Variable Description:-

  1. R:- to accept Radius as input from the user
  2. C:- to calculate Circumference
  3. A:- to calculate Area
Similar questions