155k views
3 votes
P a. Write a program to input a side of a square. Calculate and print the area of a square.


User Apoorv
by
5.4k points

1 Answer

9 votes

Answer:

INPUT "What is the side of the square"; sidelength

areasquare = sidelength*sidelength

PRINT areasquare

Step-by-step explanation:

the formula for area of a square is side times side

done in QBASIC programming language!

User Karoy Lorentey
by
5.7k points