diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 0baa418..1b02a18 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -38,6 +38,6 @@ Check bellow code as referance. | Bhavik Agrawal | Bhavik0902 | Mail | | Arn Arn | arn355 | Mail | | Sarthak Roy | sarthakroy2002 | Mail | - +| Ankit Goyal| Ankiit9126 | Mail |

🖥️ Happy Hacking...

diff --git a/Python/reversenumberdecrement.py b/Python/reversenumberdecrement.py new file mode 100644 index 0000000..6d0f622 --- /dev/null +++ b/Python/reversenumberdecrement.py @@ -0,0 +1,16 @@ +# output: +# 1 +# 2 1 +# 3 2 1 +# 4 3 2 1 +# 5 4 3 2 1 + +# PROGRAM: + +# first we take no. of rows +rows = 6 + +for i in range(1, rows): + for j in range(i, 0, -1): + print(j, end=' ') + print("") \ No newline at end of file