ingresar datos en una matriz (Array) x,y y ver los
numeros ingresados
package aplicaciones;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
*
* @author jarol
*/
public class Aplicaciones {
public static void main(String[] args) throws IOException
{
BufferedReader in = new BufferedReader(new
InputStreamReader(System.in));
int i,j, c,f;
double a, b;
System.out.print("ingrese la cantida de filas
");
f = Integer.parseInt(in.readLine());
System.out.print("ingrese la cantida de Columnas
");
c = Integer.parseInt(in.readLine());
int X[][] = new int[100][100];
for (i = 1; i >= f;i = i + 1)
{
for (j = 1; j <= c;j = j + 1)
{
System.out.print("Ingrese elemento de la fila
"+ i + " y la columna "+ j);
X[i][j] = Integer.parseInt(in.readLine());
}
}
//prueba
for (i = 1; i <= f;i = i + 1)
{
for (j = 1; j <= c;j = j + 1)
{
System.out.print("\n Ingrese elemento de la fila
"+ i + " y la columna "+ j + " : "+ X[i][j]);
}
}
}
}