Thứ Ba, 16 tháng 9, 2014

B2 Day 4 (For loop)

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


B2: The program displays even numbers from 1 to 30.


B3: . The program displays numbers from 10 to 0 in the reverse order


B4: The program will accept integers and display them until zero (0) is entered


B6:  Write a program to print the series 100, 95 , 90, 85,………., 5.


B8:  Write a program to generate the Fibonacci series. (1,1,2,3,5,8,13,………)














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

Đăng nhận xét