Driver Code
public static void main ( String [ ] args ) { int n = 3 ; System . out . print ( n + " rd ▁ Hendecagonal ▁ " + " number : ▁ " ) ; System . out . println ( hendecagonal_num ( n ) ) ; n = 10 ; System . out . print ( n + " th ▁ Hendecagonal ▁ " + " number : ▁ " ) ; System . out . println ( hendecagonal_num ( n ) ) ; } }