Skip to content

Instantly share code, notes, and snippets.

@smyy96
Created January 20, 2022 22:18
Show Gist options
  • Save smyy96/2c364ec82e58e5a839b8d246fd943d11 to your computer and use it in GitHub Desktop.
Save smyy96/2c364ec82e58e5a839b8d246fd943d11 to your computer and use it in GitHub Desktop.
Çember alan hesabı - Circle Area
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));
}
}
@smyy96
Copy link
Author

smyy96 commented Jan 20, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment