본문 바로가기

개발자 모드/C언어

C언어 do while 반복문

728x90
#include <stdio.h>

int main(void)

{
	//do {} while { 조건 }

	int i = 1;

	do {

		printf("Hello world %d\n", i++);
	} while (i < 10);

	return 0;
}

 

결과

 

 

728x90

'개발자 모드 > C언어' 카테고리의 다른 글

C언어 반복문 별찍기...  (0) 2021.09.15
C언어 for 2중 반복문  (0) 2021.09.13
C언어 while 조건문  (0) 2021.09.13
C언어 기초 a++, ++a  (0) 2021.09.13
C언어 Scanf 문자열 입출력...  (0) 2021.09.13