Posts

Showing posts from September, 2022

Sparse Matrix || C || C++ || Java || Python

Image
Sparse Matrix                                                 Matrix in which zero element is greater than non- zero element. Program :-  Input from User Processing Printing Output Output  :- Output Here,  Zero element is 5 and non-Zero element is 4. Zero element is greater than non-Zero. So, it is Sparse Matrix.

Fibonacci Series in Python

Image
  Fibonacci Series Program Output

Fibonacci Series in Java Programming Language || Java

Image
  Fibonacci Series Program Output

Fibonacci Series in C++ Programming Language

Image
  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

Fibonacci Series in C

Image
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, .............. Here,     0+1=1     1+1=2     1+2=3     2+3=5     ..........     .......... Program: Fibonacci Series in C Language Here, 1)  #include<stdio.h> and #include<conio.h> are headers file in C. 2)  int main() is the function where code is executed. 3)  "\t" is space where it takes 4 spaces. ................................................. Output: Output of Fibonacci Series Here, user enter limit of 5 and print  Fibonacci Series upto 5 series.