Created
January 20, 2022 22:18
-
-
Save smyy96/2c364ec82e58e5a839b8d246fd943d11 to your computer and use it in GitHub Desktop.
Çember alan hesabı - Circle Area
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class CircleArea { | |
public static void main(String[] args) { | |
Scanner input= new Scanner(System.in); | |
int angle,r; | |
System.out.print("Circle Angle:"); | |
angle=input.nextInt(); | |
System.out.print("Circle r:"); | |
r=input.nextInt(); | |
System.out.println("Area: "+((3.14*(r*r)*angle)/360)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yarıçapı r, merkez açısının ölçüsü 𝛼 olan daire diliminin alanı bulan program.
Program to find the area of a circle segment.