Computer Science, asked by Anonymous, 1 year ago

Write QBASIC programs for the following questions.

(a) To calculate Area of a square. [ A = l² ]

(b) To calculate perimeter of a square. [ P = 4 L ]

Answers

Answered by Prakhar2908
5

Answer :

(a)

REM PROGRAM TO CALCULATE AREA OF SQUARE

CLS

INPUT "Enter length of side of a square ";L

A=L*L

PRINT "Area of square : ";A

END

(b)

REM TO CALCULATE PERIMETER OF A SQUARE

CLS

INPUT "ENTER LENGTH OF SIDE OF SQUARE";S

P=4*S

PRINT "PERIMETER=";P

END

Answered by nancytripathi06
5

wuuwiw2jwbbw3628hwnsbeuuewu2i2u.

I HOPE YOU LIKED MY ANSWER. THANK YOU FOR THE POINT'S.

Similar questions