Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. public class Ejercicios{
  2. public static void main(String args[]){
  3.  
  4. int a []= new int [100];
  5. int filas= 50, columnas= 20, contador= 0;
  6. int numeros [][]= new int [filas][columnas];
  7.  
  8. for(int i= 10; i < filas; i++){
  9. a[i] = (int) (Math.random()* 100);
  10.  
  11. for(int k= 10; k < columnas; k++){
  12. System.out.println(a[k]);
  13. numeros [i][k]= contador;
  14. System.out.println (+ numeros[i][k]);
  15.  
  16. }
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement