Create an Account

Already have account?

Forgot Your Password ?

Home / Questions / 5-18) (Display four patterns using loops) Ask the user to enter an integer to set a limit...

5-18) (Display four patterns using loops) Ask the user to enter an integer to set a limit...

5-18) (Display four patterns using loops)

Ask the user to enter an integer to
set a limit for nested loops and generate the following four patterns:

Enter an integer to be a limit of the pattern:6
Pattern A:

1 2 
1 2 3 
1 2 3 4 
1 2 3 4 5 
1 2 3 4 5 6 

Pattern B:
1 2 3 4 5 6 
1 2 3 4 5 
1 2 3 4 
1 2 3 
1 2 


Pattern C:

2 1 
3 2 1 
4 3 2 1 
5 4 3 2 1 
6 5 4 3 2 1 

Pattern D:
1 2 3 4 5 6 
1 2 3 4 5 
1 2 3 4 
1 2 3 
1 2 

Apr 07 2020 View more View Less

Answer (Solved)

question Subscribe To Get Solution

Related Questions