SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Estructuras de datos ,[object Object],[object Object],[object Object],[object Object],[object Object]
Estructuras de datos ,[object Object],[object Object],[object Object],[object Object],2 3 4 5 6 7 2 3 4 5 6 7 8 9 3 5 7 4 6 7 1 1 4 3
[object Object],[object Object],[object Object],[object Object],Estructuras de datos Mat MatRes filas filas y columnas 2 9 4 15 6 27 31 32 33 34 35 36 2 13 4 45 6 7 8 9 53 5 37 4 26 7 100 11 4 3 1 2 3 4 5 6
[object Object],Estructuras de datos Mat filas Mat[1] = 2 Mat[2] = 9 Mat[3] = 14 Mat[4] = 15 Mat[5] = 6 Mat[6] = 25 2 9 4 15 6 27 1 2 3 4 5 6
Definición: Inicio Mat:  Arreglo[10] entero ……… fin Lectura   Mat:  Arreglo[10] entero … .. leer n_e // numero de elementos for (i = 1, i <= n_e,i++) leer Mat[i] endfor Presentar   Mat:  Arreglo[10] enetero … ..   for (i = 1, i <= n_e,i++) presentar Mat[i] endfor Recorrer   Mat:  Arreglo[10] enetero … ..   for (i = 1, i <= n_e,i++) Mat[i]    mat[i]*2 endfor … ..
inicio   Mat Arreglo [10] entero // ingresar numero de elementos imprimir “ingrese numero de elementos” leer n_e // llenar la matriz   for (i = 1, i <= n_e,i++) leer  Mat[i] endfor   // proceso   for (i = 1, i <= n_e,i++) If  (residuo( mat[i] /2) =  0) then   presentar “el numero”,mat[i], es par endif endfor   // presentar la matriz   for (i = 1, i <= n_e,i++) imprimir  Mat[i] endfor fin
[object Object],Estructuras de datos MatRes filas y columnas MatRes[1,1] = 2 MatRes[2,4] = 5 MatRes[3,2] = 7 MatRes[1,6] = 7 MatRes[2,1] = 8  MatRes[3,5] = 4 31 32 33 34 35 36 2 13 4 45 6 7 8 9 53 5 37 4 26 7 100 11 4 3
Definición: Inicio Arreglo MatRes[10][10] entero …… fin Lectura Mat Arreglo [10][10] entero … .. leer n_f // numero de filas leer n_c // numero de columnas   for (i = 1, i <= n_f,i++)   for (i = 1, i <= n_c,i++) leer Mat[i][j]   endfor   endfor Presentar Mat Arreglo [10][10] entero … ..   for (i = 1, i <= n_f,i++)   for (i = 1, i <= n_c,i++) presentar Mat[i][j]   endfor   endfor Recorrer Mat Arreglo [10][10] entero … ..   for (i = 1, i <= n_f,i++)   for (i = 1, i <= n_c,i++) Mat[i][j]    0   endfor   endfor … ..
inicio Mat Arreglo [10][10] entero // ingresar numero de elementos presentar “ingrese numero de filas” leer n_f presentar “ingrese numero de filas” leer n_c // llenar la matriz   for (i = 1, i <= n_f,i++)   for (j = 1, i <= n_c,i++) leer Mat[i][j]   endfor endfor   // proceso   for (i = 1, i <= n_f,i++)   for (j = 1, i <= n_c,i++) if primo(Mat[i][j])  then   presentar “numero es primo” endif   endfor endfor   // presentar la matriz   for (i = 1, i <= n_f,i++)   for (j = 1, i <= n_c,i++) leer Mat[i][j]   endif endif inicio metodo primo(entero num) logica d = 2 lim = num / 2 p =verdadero while (d < num)   if residuo(num/d) == 0 p    falso d    lim   endif   d    d + 1 endwhile return p finfunc
Ejercicios ,[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt? (12)

Operaciones con matrices_en_matlab
Operaciones con matrices_en_matlabOperaciones con matrices_en_matlab
Operaciones con matrices_en_matlab
 
Exposicion Arreglos
Exposicion ArreglosExposicion Arreglos
Exposicion Arreglos
 
Boletin 2
Boletin 2Boletin 2
Boletin 2
 
Arreglos
ArreglosArreglos
Arreglos
 
Arreglos-Programacion
Arreglos-ProgramacionArreglos-Programacion
Arreglos-Programacion
 
Paila (1)
Paila (1)Paila (1)
Paila (1)
 
Calculadora
CalculadoraCalculadora
Calculadora
 
Practica 2 matlab
Practica 2 matlabPractica 2 matlab
Practica 2 matlab
 
Programa arreglos 2
Programa arreglos 2Programa arreglos 2
Programa arreglos 2
 
AsignacióN DináMica
AsignacióN DináMicaAsignacióN DináMica
AsignacióN DináMica
 
Práctico 5 Derivadas
Práctico 5 DerivadasPráctico 5 Derivadas
Práctico 5 Derivadas
 
Ejercicio
EjercicioEjercicio
Ejercicio
 

Andere mochten auch

Estructuras de base de datos
Estructuras de base de datosEstructuras de base de datos
Estructuras de base de datosLuis Carlos
 
Estructura de datos presentacion y sesion 1
Estructura de datos presentacion y sesion 1Estructura de datos presentacion y sesion 1
Estructura de datos presentacion y sesion 1Jesús Gómez Ávila
 
BASE DE DATOS Y SU ESTRUCTURA
BASE DE DATOS Y SU ESTRUCTURABASE DE DATOS Y SU ESTRUCTURA
BASE DE DATOS Y SU ESTRUCTURADayana2455
 
Estructura de las bases de datos
Estructura de las bases de datosEstructura de las bases de datos
Estructura de las bases de datos142918
 
Diapositiva de l estructura de datos
Diapositiva de l estructura de datosDiapositiva de l estructura de datos
Diapositiva de l estructura de datosmariajuly
 

Andere mochten auch (8)

Trabajo de informatica.pptx yusssyy
Trabajo de informatica.pptx yusssyyTrabajo de informatica.pptx yusssyy
Trabajo de informatica.pptx yusssyy
 
Estructura de Datos en Java
Estructura de Datos en JavaEstructura de Datos en Java
Estructura de Datos en Java
 
Estructuras de base de datos
Estructuras de base de datosEstructuras de base de datos
Estructuras de base de datos
 
Estructura de datos presentacion y sesion 1
Estructura de datos presentacion y sesion 1Estructura de datos presentacion y sesion 1
Estructura de datos presentacion y sesion 1
 
BASE DE DATOS Y SU ESTRUCTURA
BASE DE DATOS Y SU ESTRUCTURABASE DE DATOS Y SU ESTRUCTURA
BASE DE DATOS Y SU ESTRUCTURA
 
Estructura de las bases de datos
Estructura de las bases de datosEstructura de las bases de datos
Estructura de las bases de datos
 
Estructura de datos
Estructura de datosEstructura de datos
Estructura de datos
 
Diapositiva de l estructura de datos
Diapositiva de l estructura de datosDiapositiva de l estructura de datos
Diapositiva de l estructura de datos
 

Ähnlich wie Estructuras de datos

Metodología y Tecnología de la Programación I (II Bimestre)
Metodología y Tecnología de la Programación I (II Bimestre)Metodología y Tecnología de la Programación I (II Bimestre)
Metodología y Tecnología de la Programación I (II Bimestre)Videoconferencias UTPL
 
Video Segundo Bimestre Metodologia Abierta
Video Segundo Bimestre Metodologia AbiertaVideo Segundo Bimestre Metodologia Abierta
Video Segundo Bimestre Metodologia AbiertaDanilo Jaramillo
 
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION I
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION IMETODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION I
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION IVideoconferencias UTPL
 
Arreglos
ArreglosArreglos
Arregloslichic
 
Clase 9- programacion
Clase 9- programacionClase 9- programacion
Clase 9- programaciondiego MC
 
ARRAYS (LISTAS Y TABLAS) EN C++
ARRAYS (LISTAS Y TABLAS) EN C++ARRAYS (LISTAS Y TABLAS) EN C++
ARRAYS (LISTAS Y TABLAS) EN C++die_dex
 
Arreglos bidimensionales o matrices
Arreglos bidimensionales o matricesArreglos bidimensionales o matrices
Arreglos bidimensionales o matricesAriannaYadiraT
 
Metodologia Y Tecnologia De La Programacion I
Metodologia Y Tecnologia De La Programacion IMetodologia Y Tecnologia De La Programacion I
Metodologia Y Tecnologia De La Programacion IVideoconferencias UTPL
 
Arreglos
ArreglosArreglos
ArreglosUPTC
 
Tutorial de matrices c#
Tutorial de matrices c#Tutorial de matrices c#
Tutorial de matrices c#elidetjc
 

Ähnlich wie Estructuras de datos (20)

Metodología y Tecnología de la Programación I (II Bimestre)
Metodología y Tecnología de la Programación I (II Bimestre)Metodología y Tecnología de la Programación I (II Bimestre)
Metodología y Tecnología de la Programación I (II Bimestre)
 
Video Segundo Bimestre Metodologia Abierta
Video Segundo Bimestre Metodologia AbiertaVideo Segundo Bimestre Metodologia Abierta
Video Segundo Bimestre Metodologia Abierta
 
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION I
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION IMETODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION I
METODOLOGIA Y TECNOLOGIA DE LA PROGRAMACION I
 
Arreglos
ArreglosArreglos
Arreglos
 
Arreglos en C
Arreglos en CArreglos en C
Arreglos en C
 
Segundo Bimestre
Segundo BimestreSegundo Bimestre
Segundo Bimestre
 
Arreglos unidimensionales
Arreglos unidimensionalesArreglos unidimensionales
Arreglos unidimensionales
 
arrays
arraysarrays
arrays
 
Clase 9- programacion
Clase 9- programacionClase 9- programacion
Clase 9- programacion
 
ARRAYS (LISTAS Y TABLAS) EN C++
ARRAYS (LISTAS Y TABLAS) EN C++ARRAYS (LISTAS Y TABLAS) EN C++
ARRAYS (LISTAS Y TABLAS) EN C++
 
Arreglos bidimensionales o matrices
Arreglos bidimensionales o matricesArreglos bidimensionales o matrices
Arreglos bidimensionales o matrices
 
Arrays unidimensionales
Arrays unidimensionalesArrays unidimensionales
Arrays unidimensionales
 
Metodologia Y Tecnologia De La Programacion I
Metodologia Y Tecnologia De La Programacion IMetodologia Y Tecnologia De La Programacion I
Metodologia Y Tecnologia De La Programacion I
 
Arreglos
ArreglosArreglos
Arreglos
 
Transparencias8
Transparencias8Transparencias8
Transparencias8
 
Arraysbidimensionales
ArraysbidimensionalesArraysbidimensionales
Arraysbidimensionales
 
Práctica 12
Práctica 12Práctica 12
Práctica 12
 
Tutorial de matrices c#
Tutorial de matrices c#Tutorial de matrices c#
Tutorial de matrices c#
 
Tutorial de matrices c#
Tutorial de matrices c#Tutorial de matrices c#
Tutorial de matrices c#
 
Xxxxxxxxxxxxxx
XxxxxxxxxxxxxxXxxxxxxxxxxxxx
Xxxxxxxxxxxxxx
 

Kürzlich hochgeladen

Los Microcontroladores PIC, Aplicaciones
Los Microcontroladores PIC, AplicacionesLos Microcontroladores PIC, Aplicaciones
Los Microcontroladores PIC, AplicacionesEdomar AR
 
Presentación sobre la Inteligencia Artificial
Presentación sobre la Inteligencia ArtificialPresentación sobre la Inteligencia Artificial
Presentación sobre la Inteligencia Artificialcynserafini89
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docxobandopaula444
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxNombre Apellidos
 
Trabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfTrabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfedepmariaperez
 
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxAlexander López
 
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del Perú
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del PerúRed Dorsal Nacional de Fibra Óptica y Redes Regionales del Perú
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del PerúCEFERINO DELGADO FLORES
 
Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1ivanapaterninar
 
La Electricidad Y La Electrónica Trabajo Tecnología.pdf
La Electricidad Y La Electrónica Trabajo Tecnología.pdfLa Electricidad Y La Electrónica Trabajo Tecnología.pdf
La Electricidad Y La Electrónica Trabajo Tecnología.pdfjeondanny1997
 
certificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfcertificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfFernandoOblitasVivan
 
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxModelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxtjcesar1
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersIván López Martín
 
FloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptxFloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptx241522327
 
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxEl_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxAlexander López
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptchaverriemily794
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA241531640
 
Tecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxTecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxGESTECPERUSAC
 
tarea de exposicion de senati zzzzzzzzzz
tarea de exposicion de senati zzzzzzzzzztarea de exposicion de senati zzzzzzzzzz
tarea de exposicion de senati zzzzzzzzzzAlexandergo5
 
Documentacion Electrónica en Actos Juridicos
Documentacion Electrónica en Actos JuridicosDocumentacion Electrónica en Actos Juridicos
Documentacion Electrónica en Actos JuridicosAlbanyMartinez7
 
GonzalezGonzalez_Karina_M1S3AI6... .pptx
GonzalezGonzalez_Karina_M1S3AI6... .pptxGonzalezGonzalez_Karina_M1S3AI6... .pptx
GonzalezGonzalez_Karina_M1S3AI6... .pptx241523733
 

Kürzlich hochgeladen (20)

Los Microcontroladores PIC, Aplicaciones
Los Microcontroladores PIC, AplicacionesLos Microcontroladores PIC, Aplicaciones
Los Microcontroladores PIC, Aplicaciones
 
Presentación sobre la Inteligencia Artificial
Presentación sobre la Inteligencia ArtificialPresentación sobre la Inteligencia Artificial
Presentación sobre la Inteligencia Artificial
 
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docxTALLER DE ANALISIS SOLUCION  PART 2 (1)-1.docx
TALLER DE ANALISIS SOLUCION PART 2 (1)-1.docx
 
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptxCrear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
Crear un recurso multimedia. Maricela_Ponce_DomingoM1S3AI6-1.pptx
 
Trabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdfTrabajo de tecnología excel avanzado.pdf
Trabajo de tecnología excel avanzado.pdf
 
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptxLAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
LAS_TIC_COMO_HERRAMIENTAS_EN_LA_INVESTIGACIÓN.pptx
 
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del Perú
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del PerúRed Dorsal Nacional de Fibra Óptica y Redes Regionales del Perú
Red Dorsal Nacional de Fibra Óptica y Redes Regionales del Perú
 
Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1Guía de Registro slideshare paso a paso 1
Guía de Registro slideshare paso a paso 1
 
La Electricidad Y La Electrónica Trabajo Tecnología.pdf
La Electricidad Y La Electrónica Trabajo Tecnología.pdfLa Electricidad Y La Electrónica Trabajo Tecnología.pdf
La Electricidad Y La Electrónica Trabajo Tecnología.pdf
 
certificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdfcertificado de oracle academy cetrificado.pdf
certificado de oracle academy cetrificado.pdf
 
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptxModelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
Modelo de Presentacion Feria Robotica Educativa 2024 - Versión3.pptx
 
CommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 TestcontainersCommitConf 2024 - Spring Boot <3 Testcontainers
CommitConf 2024 - Spring Boot <3 Testcontainers
 
FloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptxFloresMorales_Montserrath_M1S3AI6 (1).pptx
FloresMorales_Montserrath_M1S3AI6 (1).pptx
 
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptxEl_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
El_Blog_como_herramienta_de_publicacion_y_consulta_de_investigacion.pptx
 
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).pptLUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
LUXOMETRO EN SALUD OCUPACIONAL(FINAL).ppt
 
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6    CREAR UN RECURSO MULTIMEDIAActividad integradora 6    CREAR UN RECURSO MULTIMEDIA
Actividad integradora 6 CREAR UN RECURSO MULTIMEDIA
 
Tecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptxTecnologias Starlink para el mundo tec.pptx
Tecnologias Starlink para el mundo tec.pptx
 
tarea de exposicion de senati zzzzzzzzzz
tarea de exposicion de senati zzzzzzzzzztarea de exposicion de senati zzzzzzzzzz
tarea de exposicion de senati zzzzzzzzzz
 
Documentacion Electrónica en Actos Juridicos
Documentacion Electrónica en Actos JuridicosDocumentacion Electrónica en Actos Juridicos
Documentacion Electrónica en Actos Juridicos
 
GonzalezGonzalez_Karina_M1S3AI6... .pptx
GonzalezGonzalez_Karina_M1S3AI6... .pptxGonzalezGonzalez_Karina_M1S3AI6... .pptx
GonzalezGonzalez_Karina_M1S3AI6... .pptx
 

Estructuras de datos

  • 1.
  • 2.
  • 3.
  • 4.
  • 5. Definición: Inicio Mat: Arreglo[10] entero ……… fin Lectura Mat: Arreglo[10] entero … .. leer n_e // numero de elementos for (i = 1, i <= n_e,i++) leer Mat[i] endfor Presentar Mat: Arreglo[10] enetero … .. for (i = 1, i <= n_e,i++) presentar Mat[i] endfor Recorrer Mat: Arreglo[10] enetero … .. for (i = 1, i <= n_e,i++) Mat[i]  mat[i]*2 endfor … ..
  • 6. inicio Mat Arreglo [10] entero // ingresar numero de elementos imprimir “ingrese numero de elementos” leer n_e // llenar la matriz for (i = 1, i <= n_e,i++) leer Mat[i] endfor // proceso for (i = 1, i <= n_e,i++) If (residuo( mat[i] /2) = 0) then presentar “el numero”,mat[i], es par endif endfor // presentar la matriz for (i = 1, i <= n_e,i++) imprimir Mat[i] endfor fin
  • 7.
  • 8. Definición: Inicio Arreglo MatRes[10][10] entero …… fin Lectura Mat Arreglo [10][10] entero … .. leer n_f // numero de filas leer n_c // numero de columnas for (i = 1, i <= n_f,i++) for (i = 1, i <= n_c,i++) leer Mat[i][j] endfor endfor Presentar Mat Arreglo [10][10] entero … .. for (i = 1, i <= n_f,i++) for (i = 1, i <= n_c,i++) presentar Mat[i][j] endfor endfor Recorrer Mat Arreglo [10][10] entero … .. for (i = 1, i <= n_f,i++) for (i = 1, i <= n_c,i++) Mat[i][j]  0 endfor endfor … ..
  • 9. inicio Mat Arreglo [10][10] entero // ingresar numero de elementos presentar “ingrese numero de filas” leer n_f presentar “ingrese numero de filas” leer n_c // llenar la matriz for (i = 1, i <= n_f,i++) for (j = 1, i <= n_c,i++) leer Mat[i][j] endfor endfor // proceso for (i = 1, i <= n_f,i++) for (j = 1, i <= n_c,i++) if primo(Mat[i][j]) then presentar “numero es primo” endif endfor endfor // presentar la matriz for (i = 1, i <= n_f,i++) for (j = 1, i <= n_c,i++) leer Mat[i][j] endif endif inicio metodo primo(entero num) logica d = 2 lim = num / 2 p =verdadero while (d < num) if residuo(num/d) == 0 p  falso d  lim endif d  d + 1 endwhile return p finfunc
  • 10.
  • 11.