Page not loading? Try clicking here.
Placeholder

#9551
Language restricted

반복제어문 1 - 연습문제 2 1s - MB

Problems

변수 num에 1을 대입한 후 1씩 증가시키면서 10까지의 누적 합을 구하는 프로그램을 while문을 이용하여 작성하고, 1부터 10까지의 합과 while문이 끝난 후의 num의 값을 출력하는 프로그램을 작성하시오. 


Example

1부터 10까지의  = 55

while문이 끝난 후의 num의 = 11

Source

자기주도 파이썬

You must sign in to write code.