Computer Science, asked by shurti8946, 7 days ago

The program must accept two integers X and Y as the input. The program must interchange only the unit digit of X and Y and print the modified X and Y as the output.

Answers

Answered by Aryansingh001
3

Answer:

The program must accept an integer N as the input. The program must print the desired pattern as shown in the Example Input/Output section.

Boundary Condition(s):

1 <= N <= 100

Input Format:

The first line contains N.

Output Format:

The first N lines containing the desired pattern as shown in the Example Input/Output section.

Example Input/Output 1:

Input:

5

Output:

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

Example Input/Output 2:

Input:

6

Output:

1

1 2

1 2 3

1 2 3 4

1 2 3 4 5

1 2 3 4 5 6

IF  U didn't understand here is link to it it has been solvd very right https://www.skillrack.com/faces/free/articles.xhtml

Explanation:

Similar questions