Program to fibanocci of matrix - 100 Most Important C# Programs

100 Most Important C# Programs

60. Program to fibanocci of matrix

Code:

# include <stdio.h>

# include <conio.h>

# include <math.h>

main( )

{

int a[10][10],i,j,m,n sum=0;

float norm;

clrscr( );

printf(‘enter the matrix size”);

scanf(“%d%d”,&m,&n);

printf(“enter the element of matrix”);

for(i=1;i<=m;i++)

for(j=1;j<=n;j++)

{

scanf(“%d”,&a[i][j]);

sum=sum+(a[i][j]*a[i][j])

}

norm=sqrt(sum);

printf(“norm=%f”,norm);

getch( );

}