Represent the given number as the sum of two composite numbers | C # implementation of the approach ; Function to find two composite numbers which when added give sum as n ; Only 8 and 10 can be represented as the sum of two composite integers ; If n is even ; If n is odd ; Driver code
using System ; class GFG { static void findNums ( int n ) { if ( n <= 11 ) { if ( n == 8 ) Console . Write ( "4 ▁ 4" ) ; if ( n == 10 ) Console . Write ( "4 ▁ 6" ) ; else Console . Write ( " - 1" ) ; return ; } if ( n % 2 == 0 ) Console . Write ( "4 ▁ " + ( n - 4 ) ) ; else Console . Write ( "9 ▁ " + ( n - 9 ) ) ; } public static void Main ( ) { int n = 13 ; findNums ( n ) ; } }