How to calculate strike rate of a batsman | C ++ program to calculate strike rate of a batsman ; function to calculate strike rate of a batsman ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; float strikerate ( int bowls , int runs ) { float z ; z = ( float ( runs ) / bowls ) * 100 ; return z ; } int main ( ) { int A , B ; A = 264 ; B = 173 ; cout << strikerate ( B , A ) << endl ; return 0 ; }