URI Online Judge | 1097
Sequencia IJ 3
Adaptado por Neilor Tonin, URI
Brasil
Timelimit: 1
Você deve fazer um programa que apresente a sequencia conforme o exemplo abaixo.
Entrada
Não há nenhuma entrada neste problema.
Saída
Imprima a sequencia conforme exemplo abaixo.
URI Online Judge | 1097
Sequence IJ 3
Adapted by Neilor Tonin, URI
Brazil
Timelimit: 1
Make a program that prints the sequence like the following exemple.
Input
This problem doesn't have input.
Output
Print the sequence like the example below.
i = 1
j = 7
while i <= 9:
for c in range(1,4):
print('I={} J={}'.format(i,j))
j = j - 1
i = i + 2
j = j + 5
i = 1
j = 7
while i <= 9:
for c in range(1,4):
print('I={} J={}'.format(i,j))
j = j - 1
i = i + 2
j = j + 5
Nenhum comentário:
Postar um comentário