FIBONACCI SERIES A Series of a numbers in which each number is the sum of the Previous numbers. Ex- 0, 1, 1, 2, 3, 5, 8, .............. Program: Fibonacci Series using while loop. Syntex of while Loop // declaration part while (condition) { // increment or decrement } Fibonacci Series Output: Output of Fibonacci Series
Reverse of array element Reverse data in array. Like we Stored 'a' having 5 elements 2,44,75,89,67,11. Reverse and stored in another array variable, output 'b' contains 11,67,89,75,44,2. Program Output
Comments
Post a Comment