Computer Science, asked by eshankhiregoudar, 3 days ago

write an algorithm to find area of square in qbasic

Answers

Answered by Anonymous
5

What is Algorithm?

The step by step description of cօde logic that helps us to write the cօde that is known as algorithm. It is written in simple and easy language.

Algorithm:

Step 1. Start.

Step 2. Input length of side a square.

Step 3. Area of square = side * side

Step 4. Assign result.

Step 5. End.

\rule{300}{2}

Program:

Here's a QBasic Program to find the area of a square:

CLS

INPUT "Enter the side of a square: "; S

A = S * S

PRINT "The area of a square is: "; A

END

Similar questions