DINO_CH

Untitled

Feb 10th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. package testbr;
  2. import java.util.*;
  3. public class newTest {
  4.  
  5.     public static void main(String[] args) {
  6.         String[]aluno={"Joao", "Marcelo", "Roberto", "Carmem" , "Maria"};
  7.         String[] trimestre= {"1trim", "2trim","3trim","4trim"};
  8.         double[][]notas=new double [5][3];
  9.        
  10.         Random num=new Random();
  11.        
  12.         for(int i=0;i<5;i++) {
  13.            
  14.             for(int j=0;j<3;j++) {
  15.                
  16.                 notas[i][j]=num.nextInt(6)+5;
  17.                 if(notas[i][j]>=5) {
  18.             System.out.print((double)notas[i][j]+" "); 
  19.             System.out.print("");
  20.        
  21.             }
  22.                
  23.         }
  24.             System.out.println(" ");
  25.     }
Advertisement
Add Comment
Please, Sign In to add comment