Else apply the formula
$ A = ( $ X * $ Y ) - ( $ X + $ Y ) ; $ N = ( $ X - 1 ) * ( $ Y - 1 ) / 2 ; echo " Largest ▁ Amount ▁ = ▁ " , $ A , " STRNEWLINE " ; echo " Total ▁ Count ▁ = ▁ " , $ N , " STRNEWLINE " ; }