online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
import java.util.*; import java.lang.Math; public class Main { public static void main(String args[]) { Scanner sc=new Scanner(System.in); while(true) { char ch; long c; ch=sc.next().charAt(0); if(ch=='+'||ch=='-'||ch=='*'||ch=='/'||ch=='%') { long a=sc.nextLong(); long b=sc.nextLong(); if(ch=='+') {c=a+b; System.out.println(c);} else if(ch=='-') {c=a-b; System.out.println(c);} else if(ch=='*') {c=a*b; System.out.println(c);} else{ if(a>0&&a<Math.pow(10,8)&&b!=0) { if(ch=='/') {c=a/b; System.out.println(c);} if(ch=='%') {c=a%b; System.out.println(c);} } } } else if(ch=='X'||ch=='x') {break;} else{ System.out.println("Invalid Operation"); continue; } } } // Your Code Here }

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