214k views
2 votes
Write a program to enter length of a square and print area of square.
(class 8)​

2 Answers

0 votes

Answer:

program by INPUT statement

Step-by-step explanation:

CLS

REM to enter length of a square and print area of square.

INPUT "Enter length of a square"; l

LET Area of a square = l^2

PRINT " AOF "; Area of a square.

END

User Bachi
by
3.7k points
4 votes

Step-by-step explanation:

Using python,

Length=int(input('Enter the length :'))

Breadth=int(input('Enter the breadth :'))

Area=length*breadth

print('The area is:' , Area)

User Bernzkie
by
4.3k points