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#, 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 inp = new Scanner(System.in); System.out.println("This program approximates the Riemann Zeta Function"); System.out.println("through straightforward addition."); System.out.println("Input 0 to stop."); double x=1; while(x!=0){ System.out.print("\nEnter a Zeta input: "); x=inp.nextDouble(); if(x!=0){ double sum=0; for (int n=1;n<99;n++){ sum+=Math.pow(n,-x); } System.out.println("Zeta("+x+") = "+sum);}} } }

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