text: Count ways to express a number as sum of exactly two numbers | Function returns the count of ways express a number as sum of two numbers . ; Driver Code
code: function CountWays ( n ) { let ans = Math . floor ( ( n - 1 ) / 2 ) ; return ans ; } let N = 8 ; document . write ( CountWays ( N ) ) ;