SlideShare una empresa de Scribd logo
# include<stdio.h>
#include<conio.h>
main()
{
int i,j,k,l,m,n ;
float a[100][100];
floatdet;
printf("ttIntroducir el ORDEN DE LA MATRIZ : N = ");
scanf("%d",&n);
printf("n");
m=n-1;
/* Vamos a introducir la matriz por teclado*/
printf("ttIntroducir los elementos por FILAS n");
printf("tt---------------------------------- n");
for(i=1;i<=n;i++)
{ for(j=1;j<=n;j++)
{ printf("A(%d,%d) =",i,j);
scanf("%f",&a[i][j]); } }
/* SI QUEREMOS LEER LOS ELEMENTOS DE LA MATRIZ LISTADOS */
for(i=1;i<=n;i++)
{ for(j=1;j<=n;j++)
printf("tttA(%d,%d) =%8.4fn",i,j,a[i][j] ); }
/*****Calculo del DETERMINANTE*****/
det=a[1][1];
for(k=1;k<=m;k++)
{ l=k+1;
for(i=l;i<=n;i++)
{ for(j=l;j<=n;j++)
a[i][j] = ( a[k][k]*a[i][j]-a[k][j]*a[i][k] )/a[k][k]; }
det=det*a[k+1][k+1];
}
printf("nn");
printf("tttDETERMINANTE = %fn", det);
getch();
return 0;
}

Más contenido relacionado

DOCX
TXT
Gauss jordan en C
DOC
Funcion
DOC
Proma en c ventas
TXT
Prog1
PDF
Ejercicios resueltos en el Laboratorio de estructuras selectivas. CBP100
DOCX
Andres quintal.doc
DOCX
Jimakawarygrosso
Gauss jordan en C
Funcion
Proma en c ventas
Prog1
Ejercicios resueltos en el Laboratorio de estructuras selectivas. CBP100
Andres quintal.doc
Jimakawarygrosso

La actualidad más candente (20)

DOCX
Programa que multiplica y suma
DOCX
Include
DOCX
Programas operadores
DOC
Suma y multiplica dos numeros decimales
TXT
Programas c++
PDF
Ejercicios simples en lenguaje c
DOCX
PPTX
Diana ayala
PPTX
DOCX
Programas sencillos en lenguaje C
DOCX
DOCX
enunciado
DOCX
Programaswin32c++
TXT
Ordenamiento shell
DOCX
Programa suma y multiplicacion alexander freites
DOCX
Programa para comprobar los números
PPTX
Daniela grajales
PDF
Ejercicios Propuestos de Punteros 16a19
PDF
Enunciados Punteros en el Lenguaje C
Programa que multiplica y suma
Include
Programas operadores
Suma y multiplica dos numeros decimales
Programas c++
Ejercicios simples en lenguaje c
Diana ayala
Programas sencillos en lenguaje C
enunciado
Programaswin32c++
Ordenamiento shell
Programa suma y multiplicacion alexander freites
Programa para comprobar los números
Daniela grajales
Ejercicios Propuestos de Punteros 16a19
Enunciados Punteros en el Lenguaje C
Publicidad

Destacado (16)

PDF
Gaby Siemion Letter of Rec
PDF
Splash-UNC-Fall-2016-Catalog
PDF
JPGS Swimming
PPTX
Futurebooks cloud-based bookkeeping
PDF
ADC agency 2016
PDF
20150731123901307
PDF
RugbyLevel 1
PDF
Codes & standards course
PPTX
RFID Application
PDF
TrainingCenter
PDF
Testing 2
PPTX
Accounting 2.0. CFO's answer to painless reporting
PPS
Kék kép szépségek
PDF
Gap-анализ требований к внедряемым системам
PPTX
Presentación de números
PPTX
Tarea5 adrianamunoz
Gaby Siemion Letter of Rec
Splash-UNC-Fall-2016-Catalog
JPGS Swimming
Futurebooks cloud-based bookkeeping
ADC agency 2016
20150731123901307
RugbyLevel 1
Codes & standards course
RFID Application
TrainingCenter
Testing 2
Accounting 2.0. CFO's answer to painless reporting
Kék kép szépségek
Gap-анализ требований к внедряемым системам
Presentación de números
Tarea5 adrianamunoz
Publicidad

Similar a Matriz (20)

DOCX
Deber de programación
DOCX
Rubenmajano
DOCX
programas varios de visual
TXT
PROBLEMAS DE POGRAMACION 1
DOCX
algoritmos y Programacion
DOCX
Informe minishell
DOCX
Codigos de programas
DOCX
Codigos de programas
DOCX
Codigos de programas
TXT
Tipos de Ordenamiento en C
DOCX
Robin riberoprograma2
DOCX
Practicas de programacion 11 20
DOCX
Aritmetica
DOCX
Practicas segundo parcial de programacion avanzada
TXT
Practicas c++
TXT
Practicas c++
TXT
Matrices
DOC
Ejemplos de algoritmos en C básicos (aprendiendo a programar)
PPTX
Universidad técnica de ambato
Deber de programación
Rubenmajano
programas varios de visual
PROBLEMAS DE POGRAMACION 1
algoritmos y Programacion
Informe minishell
Codigos de programas
Codigos de programas
Codigos de programas
Tipos de Ordenamiento en C
Robin riberoprograma2
Practicas de programacion 11 20
Aritmetica
Practicas segundo parcial de programacion avanzada
Practicas c++
Practicas c++
Matrices
Ejemplos de algoritmos en C básicos (aprendiendo a programar)
Universidad técnica de ambato

Matriz

  • 1. # include<stdio.h> #include<conio.h> main() { int i,j,k,l,m,n ; float a[100][100]; floatdet; printf("ttIntroducir el ORDEN DE LA MATRIZ : N = "); scanf("%d",&n); printf("n"); m=n-1; /* Vamos a introducir la matriz por teclado*/ printf("ttIntroducir los elementos por FILAS n"); printf("tt---------------------------------- n"); for(i=1;i<=n;i++) { for(j=1;j<=n;j++) { printf("A(%d,%d) =",i,j); scanf("%f",&a[i][j]); } } /* SI QUEREMOS LEER LOS ELEMENTOS DE LA MATRIZ LISTADOS */ for(i=1;i<=n;i++) { for(j=1;j<=n;j++) printf("tttA(%d,%d) =%8.4fn",i,j,a[i][j] ); } /*****Calculo del DETERMINANTE*****/ det=a[1][1]; for(k=1;k<=m;k++) { l=k+1; for(i=l;i<=n;i++) { for(j=l;j<=n;j++) a[i][j] = ( a[k][k]*a[i][j]-a[k][j]*a[i][k] )/a[k][k]; } det=det*a[k+1][k+1]; } printf("nn"); printf("tttDETERMINANTE = %fn", det); getch(); return 0; }