Programacion Matrices

Embed Size (px)

DESCRIPTION

ejercicios con matrices

Citation preview

Ejercicios con matrices en javaOrdenar de Forma Descendentepackage PKG_EjerciciosMatrices;import javax.swing.JOptionPane;public class Orden_Desendente {public static void main(String[] args) {double A[][]=new double[10][10];double B[][]=new double[10][10];int fil, col, i,j, posf = 0, posc = 0, cont;double ma=0, me;fil=Integer.parseInt(JOptionPane.showInputDialog(null,"Ingrese un numero de filas","Matriz",0)); col=Integer.parseInt(JOptionPane.showInputDialog(null,"Ingrese un numero de columnas","Matriz",0)); System.out.printf(" Los numreos de la matriz son:\n"); for(i=0;i