Driver code to test above methods
public static void main ( String [ ] args ) { int n = 13 ; if ( isHappynumber ( n ) ) System . out . println ( n + " ▁ is ▁ a ▁ Happy ▁ number " ) ; else System . out . println ( n + " ▁ is ▁ not ▁ a ▁ Happy ▁ number " ) ; } }