diff --git a/Python/half-pyramid.py b/Python/half-pyramid.py new file mode 100644 index 0000000..04fa638 --- /dev/null +++ b/Python/half-pyramid.py @@ -0,0 +1,8 @@ +rows = int(input("Enter the number of rows: ")) + +# This will print the rows +for i in range(1, rows+1): + # This will print number of column + for j in range(1, i + 1): + print(j, end=' ') + print("")