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.Arrays; public class Main { public static void main(String[] args) { // هنا قمنا بتعريف مصفوفة وقمنا بملئها مبدئيا بالقيم int[] mark = {98, 77, 57, 45, 75, 67, 81, 48, 62, 88}; System.out.format("AVG = %.2f", avg(mark)); System.out.println("\nMAX = " + max(mark)); System.out.println("MIN = " + min(mark)); } private static double avg(int array[]) { int sum = Arrays.stream(array).sum(); double avg = sum / array.length; return avg; } private static int max(int array[]) { Arrays.sort(array); return array[array.length - 1]; } private static int min(int array[]) { Arrays.sort(array); return array[0]; } }

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