write an algorithm to calculate square of a number (you can take any number you want) pls answer fast i will mark you brainliest
Answers
Answered by
6
Required Answer:-
Question:
- Write an algorithm to calculate square of a number.
Solution:
Here is the algorithm.
- START
- Ask the user to enter a number.
- Multiply the number with itself and store the result in a variable, say s.
- Display the value of s.
- STOP
Sample program of this question in Python.
n=int(input("Enter a number: "))
s=n*n
print("Square: ", s)
Similar questions