Program to implement Collatz Conjecture | C # program to implement Collatz Conjecture ; Function to find if n reaches to 1 or not . ; Return true if n is positive ; Drivers code
using System ; class GFG { static bool isToOne ( int n ) { return ( n > 0 ) ; } public static void Main ( ) { int n = 5 ; if ( isToOne ( n ) == true ) Console . Write ( " Yes " ) ; else Console . Write ( " No " ) ; } }