Use if-else condition to model the following piecewise function:
22 <10 + 99 I > 10
Use a for loop to calculate the square of first 10 integers. Do Exercise 3 but with using while loop_ Use & for loop to write a table for & given number up to 10. For example, if & given number is a-8, then the output should look like 8 * 1 = 8 8 * 2 = 16 8*3 = 24 8 *4 = 32 8 * 5 = 40 8 * 6 = 48 8*7 = 56 8 * 8 = 64 8 * 9 = 72 8 * 10 = 80 @n = 4 is a sequence that converges to 0. Use a threshold e = 0.005 and find out the value of n such that Gn < e. (Hint: The statement of problems suggest that a while loop is a suitable choice)