online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Online Java Compiler. Code, Compile, Run and Debug java program online. Write your code in this editor and press "Run" button to execute it. *******************************************************************************/ import java.util.*; import java.text.DecimalFormat; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int a = scan.nextInt(); if(a>=20 && a<=30){ float area = (float)Math.PI*a*a; String s1 =String.format("%.2f",area); System.out.println(s1); //round off DecimalFormat dc = new DecimalFormat("#.##"); System.out.println(dc.format(area)); System.out.printf("%.2f",area); } } }

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