How to calculate strike rate of a batsman | Java program to calculate strike rate of a batsman ; function to calculate strike rate of a batsman ; Driver Code
class GFG { static float strikerate ( float bowls , float runs ) { float z ; z = ( runs / bowls ) * 100 ; return z ; } public static void main ( String [ ] args ) { int A , B ; A = 264 ; B = 173 ; System . out . println ( strikerate ( B , A ) ) ; } }