458,704 views
5 votes
5 votes
P a. Write a program to input a side of a square. Calculate and print the area of a square.


User Pradit
by
2.5k points

1 Answer

4 votes
4 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 Juru
by
2.6k points