import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class lingkaran {
public static void main (String[] args) {
BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
String input = "";
try{
double pi = 3.14;
int a;
System.out.print("masukkan jari-jari:");
input = dataIn.readLine();
a = Integer.parseInt(input);
double luaslingkaran = pi*(a*a);
//print out ke layar
System.out.println("Luas lingkaran : " + luaslingkaran);
}catch(IOException ioe){}
}
}
import java.io.IOException;
import java.io.InputStreamReader;
public class lingkaran {
public static void main (String[] args) {
BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));
String input = "";
try{
double pi = 3.14;
int a;
System.out.print("masukkan jari-jari:");
input = dataIn.readLine();
a = Integer.parseInt(input);
double luaslingkaran = pi*(a*a);
//print out ke layar
System.out.println("Luas lingkaran : " + luaslingkaran);
}catch(IOException ioe){}
}
}