Revision Programs

Set 10

Iterative Construct: Series

1. Whole Numbers

Learn it

  1. Print series 1 2 3 4 ... n

Do Yourself

  1. Print series 1 3 5 7 ... n

Learn it

  1. Print series 1 3 5 7 ... n terms

Do Yourself

  1. Print series 2 5 8 11 ... n terms

Learn it

  1. Print sum of series 1 + 2 + 3 + 4 + ... + n

Do Yourself

  1. Print sum of series 1 + 3 + 5 + 7 + ... + n

Learn it

  1. Print sum of series 1 + 3 + 5 + 7 + ... n terms

Do Yourself

  1. Print sum of series 1 + 4 + 7 + 10 + ... n terms

2. +ve and -ve Signs are Introduced

Learn it

  1. Print series 1 –2 3 –4 .... +/-n.

Do Yourself

  1. Print series 1 –3 5 –7 .... +/-n.

Do Yourself

  1. Print series 1 –3 5 –7 .... n terms

Do Yourself

  1. Print series 2 –5 8 –11 .... n terms

Do Yourself

  1. Print sum of series 1 – 2 + 3 – 4 …. +/- n

Do Yourself

  1. Print sum of series 1 – 3 + 5 – 7 …. +/- n

Do Yourself

  1. Print sum of series 1 – 3 + 5 – 7 …. n terms

Do Yourself

  1. Print sum of series 2 – 5 + 8 – 11 …. n terms

3. Math.pow() and X for Series with Base and Exponent

Learn it

  1. Print sum of series x1 + x2 + x3 + x4 …… xn

Do Yourself

  1. Print sum of series x1 + x3 + x5 + x7 …… xn

Do Yourself

  1. Print sum of series x1 + x3 + x5 + x7 …… n terms

Do Yourself

  1. Print sum of series x2 + x5 + x8 + x11 …… n terms

Do Yourself

  1. Print sum of series x1 - x3 + x5 - x7 …… xn

Do Yourself

  1. Print sum of series x2 - x5 + x8 - x11 …… xn

Do Yourself

  1. Print sum of series x1 - x3 + x5 - x7 …… n terms

Do Yourself

  1. Print sum of series x2 - x5 + x8 - x11 …… n terms

4. Numerator and Denominator in Series

Learn it

  1. Print sum of series 1/2 + 2/5 + 3/8+ ... n/m

Do Yourself

  1. Print sum of series 2/3 + 4/6 + 6/9+ ... n/m

Learn it

  1. Print sum of series 1/2 + 3/5 + 5/8+ ... n terms

Do Yourself

  1. Print sum of series 2/1 + 5/3 + 8/5+ ... n terms

5. All are Joined Together

Learn it

  1. Find sum of series s=(x1/2) + (x2/4) + (x3/6) + (x4/8) …… (xn/m)

Do Yourself

  1. Find sum of series s=(x/2) + (x3/5) + (x5/8) + (x7/11) ... (xn/m)

Learn it

  1. Find sum of series s=(x1/2) + (x3/5) + (x5/8) + (x7/11) …… n terms

Do Yourself

  1. Find sum of series s=(x/2) + (x4/4) + (x7/6) + (x10/8) ... n terms

Learn it

  1. Find sum of series s=(x1/2) – (x2/4) + (x3/6) – (x4/8) …… (xn/m)

Do Yourself

  1. Find sum of series s=(x/2) – (x3/5) + (x5/8) – (x7/11) ... (xn/m)

Learn it

  1. Find sum of series s=(x/2) – (x3/5) + (x5/8) – (x7/11) …… n terms

Do Yourself

  1. Find sum of series s=(x2/3) – (x4/6) + (x6/9) – (x8/12) ... n terms

6. Factorial of a Number is Introduced

Learn it

  1. Find Factorial of a number. Product of series 1 to the number.
    Factorial of 1 is 1. (1x1=1)
    Fatctorial of 5 is 120 (1x1=1, 1x2=2, 2x3=6, 6x4=24, 24x5=120)

7. Nested Loop Series

Following exercises upto 47 are continuation of above exercises.
Remaining single loop exercises continues from 48.

Learn it

  1. Print sum of series 1! + 2! + 3! + 4! + ... + n!

Do Yourself

  1. Print sum of series 2! + 5! + 8! + 11! + …… + n!

Learn it

  1. Print sum of series 1! + 3! + 5! ... n terms

Do Yourself

  1. Print sum of series 2! + 5! + 8! ... n terms

Learn it

  1. Find sum of series s=(x1/2!) + (x2/4!) + (x3/6!) + (x4/8!) …… (xn/m!)

Do Yourself

  1. Find sum of series s=(x/2!) + (x3/5!) + (x5/8!) + (x7/11!) ... (xn/m!)

Learn it

  1. Find sum of series s=(x1/2!) – (x2/4!) + (x3/6!) – (x4/8!) …… (xn/m!)

Do Yourself

  1. Find sum of series s=(x/2!) – (x3/5!) + (x5/8!) – (x7/11!) ... (xn/m!)

Learn it

  1. Find sum of series s=(x/2!) – (x3/5!) + (x5/8!) – (x7/11!) ... n terms

Do Yourself

  1. Find sum of series s=1/x – 3!/x4 + 5!/x7 – 7!/x10 ... n terms

8. Single Loop Series Returns

1. Fibonacci Series

Learn it

  1. Print Fibonacci Series 0 1 1 2 3 5 8 13 .... n terms.
    Initial two terms are 0 and 1. Third is sum of previous 0 and 1, i.e, 1. Next is sum of previous two terms. 1+1 i.e, 2 ...

Learn it

  1. Find sum of Series 0 + 1 + 1 + 2 + .... n terms.

2. Series 1 11 111 ... and 1 12 123 ...

Learn it

  1. Print series 1 11 111 ..... 111111111

Do Yourself

  1. Print series 5 55 555 ..... 555555555

Learn it

  1. Print sum of series 1 + 11 + 111 + ..... + 111111111

Do Yourself

  1. Print sum of series 5 + 55 + 555 + ..... + 555555555

Learn it

  1. Print series 1 11 111 ..... n terms

Do Yourself

  1. Print series 5 55 555 ..... n terms

Learn it

  1. Print sum of series 1 + 11 + 111 ..... n terms

Do Yourself

  1. Print sum of series 5 + 55 + 555 ..... n terms

Learn it

  1. Print series 1 12 123 ..... 123456789

Learn it

  1. Print series 1 12 123 ..... n terms

Learn it

  1. Print sum of series 1 + 12 + 123 + ..... + 123456789

3. Squares

Learn it

  1. Print series 1 4 9 ..... n terms

Do Yourself

  1. Find sum of series 1 + 4 + 9 ..... n terms

Square-1

Do Yourself

  1. Print series 0 3 8 ..... n terms

Square+1

Do Yourself

  1. Print series 2 5 10 ..... n terms

Squares+series

Do Yourself

  1. Print series 2 6 12 ..... n terms

4. Cubes

Do Yourself

  1. Print series 1 8 27 ..... n terms