1. Interest in compounded annually at 10% by a certain bank. Create a flowchart and the program that would input the amount and the number of years and output how much was the original amount after that period.
2. Exponentiation may also be done using a loop. Recall that a raise to the power of b is equal to a multiplied by itself b times.
3. The factorial of n is an integer is defined to be 1 if n is 0 and 1*2*3*...*n if n is positive and non zero integer. Input n and ensure it is non negative and output it's factorial.
Comments
Leave a comment