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:
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:
Similar questions