online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// // C4 import java.util.Scanner; import java.util.Random; //public class C4{ public class Main{ static int[] ran; static int nRan, max, min; public static void main(String[] args){ System.out.println("Números aleatorios"); generar(); maxMin(); System.out.printf("Max = %d, Min = %d\n", max, min); } static void generar(){ Scanner sc = new Scanner(System.in); Random rand = new Random(); do{ System.out.print("Ingrese la cantidad de números a generar (>0): "); nRan = sc.nextInt(); } while(nRan<1); ran = new int[nRan]; for(int i=0; i<nRan; i++) System.out.println(ran[i]=rand.nextInt(20)+1); } static void maxMin(){ max = 0; min = 21; for(int i=0; i<nRan; i++) { if(min>ran[i]) min = ran[i]; if(max<ran[i]) max = ran[i]; } } }

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