Thứ Hai, 16 tháng 11, 2015

Session 10

10.1 Using the ‘for’ Loop

10.2 Using the ‘while’ Loop

10.3 Using do-while Loop


10.4 Using the break statement

10.5 Using the continue statement

Part II – For the next 30 Minutes:
1. Find the factorial of a number.


1. Declare a variable which has the age of the person. Print the user’s name as many times as his age.


2.Write a program to generate the following pattern:11 21 2 31 2 3 41 2 3 4 51 2 3 4 5 61 2 3 4 5 6 71 2 3 4 5 6 7 81 2 3 4 5 6 7 8 9


3.Write a program to print a multiplication table for a given number.



Không có nhận xét nào:

Đăng nhận xét