Write down Algorithm & flowchart for following.1)Calculate the square of any number.
Answers
Answered by
1
An algorithm is a step - by - step solution of a program. It helps us to break the complex solution of a program into smaller units.
Algorithm of the program :-
Step 1 - Start.
Step 2 - Accept a number from the user in the variable n.
Step 3 - Multiply n with n (i.e. n*n) and store its value in variable p.
Step 4 - Print p with a statement "The square of the number is -".
Step 5 - End.
Flowchart of the program - in the attachment.
Attachments:
![](https://hi-static.z-dn.net/files/d35/0bb307b1455aa5bf9b95f35f1efd1fe4.png)
Answered by
0
ALGORITHM :
- Start
- Enter a number , n
- Multiply the n with n and store it in variable p
- Print p
- Stop
HOPE IT HELPS
PLEASE MARK ME BRAINLIEST ☺️
Attachments:
![](https://hi-static.z-dn.net/files/df9/c96f7f71ca393965b5b18d0d8c9fd615.jpg)
Similar questions
Political Science,
2 months ago
Chemistry,
4 months ago
English,
4 months ago
Science,
11 months ago
English,
11 months ago