Computer Science, asked by pmishrajasmine, 4 months ago

Write a QBASIC program to find area and perimeter of a square with sides 10.​

Answers

Answered by nk610612
2

Answer:

Area of a square = side × 4

area = 10 × 4

40

Answered by allysia
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