Completely Solved C, C++ Programs Assignment.




C Program to fibanocci of matrix

Filed Under:

Problem 60. C Program to fibanocci of matrix
#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( );
}

C compiler: gcc 4.1.2

 Back to main directory: Sample C Program | Software Practical | Solved C Assignment


Get Free Programming Tutorials and Solved assignments