Write a program that will interact with the user in the following manner:
Enter a number: 4
1
1 2
1 2 3
1 2 3 4
1 2 3
1 2
1
do you want to repeat the program? press y for yes
or any character to exit the program: y
Enter a number: 2
1
1 2
1
do you want to repeat the program? press y for yes
or any character to exit the program: n
Good Bye!
Leave a comment: