online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); double number; double max = Double.MIN_VALUE; // Initialize max to the smallest possible double value double min = Double.MAX_VALUE; // Initialize min to the largest possible double value // Do while loop that asks the user for values from -100 to 100 and determine max and min do { System.out.print("Enter value: "); number = input.nextDouble(); if (number == -19.5) { break; } if (number >= -100 && number <= 100) { if (number > max) { max = number; } if (number < min) { min = number; } } else { System.out.println("Invalid value. Enter a value between -100 and 100."); } } while (true); System.out.println("The max value was " + max); System.out.println("The min value was " + min); } }

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