1.16 LAB: Input and formatted output: Right-facing arrow
Given two input integers for an arrow body and arrowhead (respectively), print a right-facing arrow.

Ex: If the input is:

0 1
the output is:

1
11
0000111
00001111
0000111
11
1

Respuesta :

The program is an illustration of a sequential program.

What are sequential programs?

Sequential programs are programs that do not require loops and conditional statements

The actual program

The program in Python, where comments are used to explain each line is as follows:

#This gets input for the first integer

a = int(input())

#This gets input for the second integer

b = int(input())

#The next 7 lines print the arrow head

print(b)

print(str(b)*2)

print(str(a)*4+""+str(b)*3)

print(str(a)*4+""+str(b)*4)

print(str(a)*4+""+str(b)*3)

print(str(b)*2)

print(b)

Read more about sequential programs at:

brainly.com/question/17970226

Otras preguntas

ACCESS MORE