Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package loiane;
- import java.util.Scanner;
- public class ex2 {
- public static void main(String[] args) {
- int alt; // a altura do triangulo
- Scanner sc = new Scanner(System.in);
- int matricula [] = new int [5];
- for(int i = 0;i<5;i++)
- {
- System.out.println("Digite a matrícula: ");
- matricula[i] =sc.nextInt();
- }
- for(int j = 0;j<5;j++){
- System.out.println("matricula"+matricula[j]);
- }
- }
- }
- // triangulo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement