text: Count ways to express a number as sum of exactly two numbers | C # program to count ways to express a number as sum of two numbers . ; Function returns the count of ways express a number as sum of two numbers . ; Driver code
code: using System ; class GFG { static int CountWays ( int n ) { int ans = ( n - 1 ) / 2 ; return ans ; } public static void Main ( ) { int N = 8 ; Console . Write ( CountWays ( N ) ) ; } }