Angle subtended by an arc at the centre of a circle | Java implementation of the approach ; Function to find Angle subtended by an arc at the centre of a circle ; Driver code
import java . io . * ; class GFG { static int angle ( int n ) { return 2 * n ; } public static void main ( String [ ] args ) { int n = 30 ; System . out . println ( angle ( n ) ) ; } }