1.Series I
Write a program to generate the first n terms in the series --- 1,4,9,16,25, ....
code:
2.Series 2
Write a program to generate the first n terms in the series --- 20,19,17,..,10,5
code:
3.Series 3
Write a program to generate the first n terms in the series --- 2,3,5,7,11,...,17
code:
4.Series 4
Write a program to generate the first n terms in the series --- 6,11,21,36,56,...
code:
5.Series 5
Write a program to generate the first n terms in the series --- 3,9,27,81,...,...
code:
6. Pattern 1
Write a program to print the given pattern.
code:
7. Pattern 2
1 2 3 4 5 2 3 4 5 3 4 5 4 5 5
code:
8.Pattern 3
5 4 3 2 1 4 3 2 1 3 2 1 2 1 1
code:
9.Pattern 4
5 4 3 2 1 5 4 3 2 5 4 3 5 4 5
code:
10.Pattern 5
1 1 2 1 2 3 1 2 3 4 1 2 3 4 5
code:
11.Pattern 6
5 4 5 3 4 5 2 3 4 5 1 2 3 4 5
code:
12.Pattern 7
1 2 2 3 3 3 4 4 4 4 5 5 5 5 5
code:
13.Pattern 8
5 4 4 3 3 3 2 2 2 2 1 1 1 1 1
code:
14. Pattern 9
5 5 5 5 5
4 4 4 4
3 3 3
2 2
1
code:
15.Pattern 10
1 1 1 1 1 2 2 2 2 3 3 3 4 4 5
code:
Thankyou .....
No comments:
Post a Comment