InterviewSolution
Saved Bookmarks
| 1. |
Write a program to find square and cube of a number in algorithm form. |
|
Answer» ONG>Answer: n² = (n-1)² + (n-1+n) Explanation: To find the square of n n² = (n-1)² + (n-1+n) example 20² = 19² + 19 + 20 400 = 361 + 39 400 = 400 Hence proved |
|