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
8.0k 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
8.3k points

No related questions found

Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.