Write a program to print floyds triangle

Given a number we have to take input of n and print the floyds triangle of n size. So what is Floyds Triangle ? Floyds Triangle:floyds triangle is a right angled triangle formed by natural number which starts from 1 and increases consecutively by each row. Example: Logic: Code- Output: Time complexity:0(N*N) Space Complexity:O(1)