QUESTION A.)
Create a program to generate a multiplication table by using while loop. The multiply is determined base on user input.
QUESTION B.)
Calculate the total of any five number using do... while loop.
QUESTION C.)
Write a program for the following problem by using for statement:
Ahmad saves RM1000 in his account in a bank which returns 5% of annual interest. Assuming that all interests is left deposited in his account, calculate and print the amount of money in his account at the end of each year for 10 years by using for loop.
Comments
Post a Comment