Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package testbr;
- import java.util.*;
- public class newTest {
- public static void main(String[] args) {
- String[]aluno={"Joao", "Marcelo", "Roberto", "Carmem" , "Maria"};
- String[] trimestre= {"1trim", "2trim","3trim","4trim"};
- double[][]notas=new double [5][3];
- Random num=new Random();
- for(int i=0;i<5;i++) {
- for(int j=0;j<3;j++) {
- notas[i][j]=num.nextInt(6)+5;
- if(notas[i][j]>=5) {
- System.out.print((double)notas[i][j]+" ");
- System.out.print("");
- }
- }
- System.out.println(" ");
- }
Advertisement
Add Comment
Please, Sign In to add comment