repl.it
@Hariz_Hazril/

🏫School Project - Mencari jejari bulatan

Java

No description

fork
loading
Files
  • Main.java
Main.java
1
2
3
4
5
6
7
8
9
10
11
import java.util.Scanner;
public class Main {
	public static void main (String[]args) {
		Scanner input = new Scanner(System.in);
		System.out.print("Masukkan luas bulatan : ");
    double luasbulatan = input.nextDouble();
		System.out.print("Jejari bulatan ialah : ");
		double jejaribulatan = (luasbulatan/(22/7));
		System.out.print(Math.sqrt(jejaribulatan));
	}
}