Tuesday, November 10, 2015

JAVA Program Exercises

Exercises                                                                                    
1.    10,                      20, 30, 40, 50.....................100
2.    0, 5, 10, 15, 20…………………250
3.    100, 90, 80, 70…………………0
4.    1, 2, 4, 8, 16…………………….n
5.    4, 8, 12, 16…………………..….n
6.    12, 24, 36………………………40 terms
7.    2, 4, 8, 16, ……………………..20 terms
8.    100, 97, 94, 91, ………………upto 10
9.    1, 8, 27, 64, ……………………upto 20 terms
10.   3, 6, 9, 12, ……………………..30
11.  1, 5, 25, 625, …………….…….n
12.  1, 11, 121, 1331, 14641….……n
13.  1, 10, 100, 1000……………..…n
14.  1, 4, 5, 9, 14, 23, 37, 60…….…n
15.  1! + 2! + 3! + 4! + ……………..n!
16.  1 + 3 + 5 + 7 + …………………n
17.  2 + 4 + 6 + 8…………………....n
18.  1 + 7 + 13 + 19………………….n
19.   1 * 3 * 5 * 7 * …………………...n
20.  0 + 3 + 8 + 15 + ……………….upto 15 terms
21.  2 + 5 + 10 + 17 + …………….. upto 25 terms
22.  1+ (1+2) + (1+2+3) + (1+2+3+4) + ………(1+2+3…10)
23.  15, 25, 35, 45, 55,……………….…n5
24.   1 + 22 + 33 + 44 + 55 +..…………nn    
25.   1 + x  + x2 + x3 + x4 + x5 +………xn  



No comments:

Post a Comment