Page not loading? Try clicking here.
Placeholder

#9283
Language restricted

반복제어문1 - 형성평가 1 1s 32MB

Problems

1부터 3000까지의 정수 중 홀수를 모두 출력하는 프로그램을 작성하시오. 단, if문을 사용하지 않는다.


Output

1부터 3000까지의 정수 중 홀수를 모두 오름차순으로 출력한다.


Example

1 3 5 …(중략)... 2995 2997 2999

Source

자기주도 파이썬 4판

You must sign in to write code.