Maicou Jaquisson está se preparando para se tornar um excelente programador. Entretanto, ele ainda está preso numa mania de andar para trás, ao som do Ragatanga.
Em um exercício de ATP I, ele precisa ler dois valores inteiros, A e B, e apresentar todos os números ímpares contidos entre A e B.
Malandro, Maicou observou que o professor não especificou a ordem em que os números ímpares precisam ser apresentados, e resolveu fazer o algoritmo Moonwalk. Porém, o pobre aluno não prestou atenção nas últimas aulas, e agora, desesperado, pede-lhe ajuda para implementar o tão sonhado algoritmo.

Entrada
O problema envolve apenas um caso de teste. Nele, dois valores inteiros A e B (sendo B > A) são informados, conforme exemplo.

Saída
Como saída, todos os números ímpares contidos entre A e B (inclusive A e B, se for o caso), em ordem decrescente, separados por uma tabulação ("\t"). Entretanto, o último número apresentado não deve conter a tabulação, e sim a quebra de linha. Caso contrário, um erro será lançado. Veja exemplos.
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Lista de comentários


More Questions From This User See All
Agora leia as orações da tabela abaixo e sublinhe as formas verbais de passado e participio passado. Com a ajuda de um colega, determine seu significado e indique se elas se referem ao passado ou ao particípio passado. No caso das formas de particípio passado, identifique se estão sendo usadas como adjetivo ou como parte componente da voz passiva, escrevendo-as na coluna correspondente. Siga o exemplo: (o exemplo é a tabela na imagem) ORAÇÃO: 1) Dr. John von Neumann developed the stored program concept near the end of the war. 2) This concept revolutionized the computer industry. 3) These tubes were large, and the computer necded lots of them. 4) Maurice V. Wilkes took the idea of the stored program to Cambridge University in England. 5) These computers occupied a large area and consumed a lot of power. 6) They formed their own company and developed the UNIVAC. 7) The UNIVAC was delivered to the U.S. Census Burcau. 8) Thus, transistors were replaced by integrated circuits. 9) These tiny integrated circuits were smaller than the second generation's transistors. 10) Microminiaturization greatly reduced the size of the integrated circuits of fourth generation computers. 11) Several layers of an integrated circuit are etched or imprinted upon the chip. 12) The subsequent generations of computers may be described as the modern age of computers. 13) The Scientific Revolution was followed by the Industrial Revolution, which started in England. 14) Several machines were developed in this period, and these machines later had a great impact on the development of computers. 15) Lady Ada Lovelace invented an arithmetic code for Babbage's machine.
Responda

Helpful Social

Copyright © 2025 ELIBRARY.TIPS - All rights reserved.