Write a QBASIC program to find area and perimeter of a square with sides 10.
Answers
Answered by
2
Answer:
Area of a square = side × 4
area = 10 × 4
40
Answered by
2
Programing:
QBasic
Program:
CLS
N=10
PRINT "AREA OF SQUARE:";N*N
PRINT "PERIMETER OF SQUARE:";N*4
Output:
In the attachment.
Explanation:
- Accepts input in N.
- Returns N*N as area.
- Return N*4 as perimeter.
Attachments:
Similar questions