https://codetofun.com/c-sharp/number-pattern/program-16/
C