online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
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