Advertisement
cesarnascimento

armazenando depois

Jun 3rd, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.52 KB | None | 0 0
  1. package loiane;
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class ex2 {
  6.  
  7.     public static void main(String[] args) {
  8.         int alt; // a altura do triangulo
  9.         Scanner sc = new Scanner(System.in);
  10.         int matricula [] = new int [5];
  11.         for(int i = 0;i<5;i++)
  12.         {
  13.             System.out.println("Digite a matrícula: ");
  14.             matricula[i] =sc.nextInt();
  15.         }
  16.         for(int j = 0;j<5;j++){
  17.             System.out.println("matricula"+matricula[j]);
  18.         }
  19.  
  20.     }
  21.     }
  22.  
  23.  
  24. //  triangulo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement