Question: 3 C ) Write a C function isFib ( ) to check whether the given number is a Fibonacci number or not. Read M (
C Write a function isFib to check whether the given number is a Fibonacci number or not. Read M matrix in main and replace all the Fibonacci numbers in the principal diagonal by first digit of that number using above function and display the final matrix.
Ex: Input:
Output:
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
