aptech123
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:
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
1 2 3 4 5 6
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8
1 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
Bài đăng Mới hơn
Bài đăng Cũ hơn
Trang chủ
Đăng ký:
Đăng Nhận xét (Atom)
Không có nhận xét nào:
Đăng nhận xét