Program to check if N is a Icositrigonal number | C # implementation to check that a number is a icositrigonal number or not ; Function to check that the number is a icositrigonal number ; Condition to check if the number is a icositrigonal number ; Driver Code ; Function call
using System ; class GFG { static bool isicositrigonal ( int N ) { float n = ( float ) ( 19 + Math . Sqrt ( 168 * N + 361 ) ) / 42 ; return ( n - ( int ) n ) == 0 ; } public static void Main ( ) { int i = 23 ; if ( isicositrigonal ( i ) ) { Console . Write ( " Yes " ) ; } else { Console . Write ( " No " ) ; } } }