progra doc x

Post on 03-Sep-2015

228 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

DESCRIPTION

Programa

TRANSCRIPT

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

package matriz.filas;

import java.util.Scanner;

/**

*

* @author cristian Suarez

*/

public class MatrizFilas {

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

Scanner GOD = new Scanner(System.in);

int nf, nc;

System.out.print("ingrese el numero de filas:");

nf=GOD.nextInt();

System.out.print("ingrese el numero de columnas:");

nc=GOD.nextInt();

int mat[][]= new int[nf][nc];

for(int p =0;p

top related