結果 : printing pattern using loops hackerrank solution in c