Advertisement
CristianMarinTorres

avance matriz(TERMINAR)

May 8th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package javaapplication5;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class JavaApplication5 {
  6.  
  7.     public static void main(String[] args) {
  8.         Scanner input = new Scanner(System.in);
  9.         int filas = input.nextInt();
  10.         int columnas = input.nextInt();
  11.         int[][] votos = new int[filas][columnas];
  12.         for (int i = 0; i < filas; i++) {
  13.             for (int j = 0; j < columnas; j++) {
  14.                 System.out.println("valores");
  15.                 votos[i][j]=input.nextInt();
  16.  
  17.         }
  18.     }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement