martes, 19 de abril de 2011

Diagonal numeros ( menor , numero y mayor )

import java.util.*;
public class diagonalnumeros
{
public static void main(String args[]){
int z[][]=new int [5][5];

z[0][0]=10;
System.out.print(z[0][0]);
z[0][1]=11;
System.out.print(z[0][1]);
z[0][2]=11;
System.out.print(z[0][2]);
z[0][3]=11;
System.out.print(z[0][3]);
z[0][4]=11;
System.out.println(z[0][4]);
z[1][0]=9;
System.out.print(z[1][0]);
z[1][1]=10;
System.out.print(z[1][1]);
z[1][2]=11;
System.out.print(z[1][2]);
z[1][3]=11;
System.out.print(z[1][3]);
z[1][4]=11;
System.out.println(z[1][4]);
z[2][0]=9;
System.out.print(z[2][0]);
z[2][1]=9;
System.out.print(z[2][1]);
z[2][2]=10;
System.out.print(z[2][2]);
z[2][3]=11;
System.out.print(z[2][3]);
z[2][4]=11;
System.out.println(z[2][4]);
z[3][0]=9;
System.out.print(z[3][0]);
z[3][1]=9;
System.out.print(z[3][1]);
z[3][2]=9;
System.out.print(z[3][2]);
z[3][3]=10;
System.out.print(z[3][3]);
z[3][4]=11;
System.out.println(z[3][4]);
z[4][0]=9;
System.out.print(z[4][0]);
z[4][1]=9;
System.out.print(z[4][1]);
z[4][2]=9;
System.out.print(z[4][2]);
z[4][3]=9;
System.out.print(z[4][3]);
z[4][4]=10;
System.out.print(z[4][4]);


}}