Computer Science, asked by narayangavande82, 3 months ago

Write down Algorithm & flowchart for following.1)Calculate the square of any number.​

Answers

Answered by deepakkumar9254
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 BrainlyBAKA
0

ALGORITHM :

  1. Start
  2. Enter a number , n
  3. Multiply the n with n and store it in variable p
  4. Print p
  5. Stop

HOPE IT HELPS

PLEASE MARK ME BRAINLIEST ☺️

Attachments:
Similar questions