online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.*; public class Main { public static void main (String[]args) { Scanner ler = new Scanner (System.in); System.out.print ("Informe a qtde. de notas do aluno: "); int qtdeNotas = ler.nextInt(); double[] notasAluno = new double[qtdeNotas]; double soma = 0; for (int i = 0; i < notasAluno.length; i++) { System.out.print ("Informe a nota " + (i + 1) + ": "); notasAluno[i] = ler.nextDouble(); if (notasAluno[i] >= 0 && notasAluno[i] <= 10) { soma += notasAluno[i]; continue; } System.out.println("Nota inválida"); i--; } //impessC#o do vetor for (double nota:notasAluno) { System.out.print (nota + ", "); } System.out.println ("\nMedia: " + (soma / notasAluno.length)); ler.close (); } }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue