ACTIVITY3
ACTIVITY3
Write a program that calculates and produces these two columns sequence numbers using the
three looping statements:
1, 5, 2, 4, 3, 3, 4, 2, 5, 1,
5, 1, 4, 2, 3, 3, 2, 4, 1, 5,
Enter a no. 4
Factorial value: 24
Enter a no. 9
Fibonacci series: 1 1 2 3 5 8 13 21 34
12 + 22 + 32 + 42
1 + 4 + 9 + 16
=30
11 + 22 + 33 + 44
1 + 4 + 27 + 256 = 288