Computer Studies
Write a program in QBASIC to calculate the area and circumference of a circle of the radius 14 cm.
(Hint: Area of a circle = 22/7 * r2, Circumference = 2 * 22/7 * r)
QBASIC
QBASIC: Cmds & Stmts
217 Likes
Answer
Cls
Let R = 14
Let A = 22 / 7 * R * R
Let C = 2 * 22 / 7 * R
Print "AREA= "; A; "SQ CM"
Print "CIRCUMFERENCE= "; C; "CM"
End
Output
AREA = 616 SQ CM
CIRCUMFERENCE = 88 CM
Answered By
107 Likes
Related Questions
The base and height of a triangle are 15 cm and 10 cm respectively. Write a program in QBASIC to calculate the area of the triangle.
(Hint: Area of a triangle = 1 / 2 * base * height)A salesman sold 14 chairs at the rate of ₹ 275 each and 3 tables at the rate of ₹ 650 each. Write a program in QBASIC to calculate the total sale.
Write a program in QBASIC to find the value of the given expressions when a = 10, b = 5, c = 2.
- a2 +b3 +c4
- (a + b)2
- a2 + b2
- (a - b + c)2
In a class of 60 students, 90% are present. Write a program in QBASIC to calculate the number of students present and absent.