Addverb Technologies interview question

Q: Write the code to print Floyd's triangle for any user input.