diff --git a/task1.py b/task1.py new file mode 100644 index 0000000..d14b1ff --- /dev/null +++ b/task1.py @@ -0,0 +1,6 @@ +x=int(input("Enter the number of rows:")) +for i in range(x): + print(""*(x+i)+"*"*(i+1)) +print("------------") +for i in range(x): + print(" " * (x-i) + " *" * (i+1)) \ No newline at end of file