Advertisement
keviinrm7

EL MISMO DE ABAJO PERO CON(CON ARRGLO)

May 31st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. System.out.print("Cuantos numeros desea ingresar: ");
  2. num=teclado.nextInt();
  3. double calificaciones [] =new double[num];
  4. for(int i=0; i<num;i++)
  5. {
  6. System.out.println("CalifiCACIONES:");
  7. calificaciones[i]=teclado.nextDouble();
  8. suma=suma+calificaciones[i];
  9. }
  10. System.out.println("Prmedio: "+(suma/num));
  11.  
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement