본문 바로가기

개발자 모드/C언어

C언어 while 조건문

728x90
#include <stdio.h>

int main(void)

{


	// while 조건

	int i = 1;

	while (i < 10)
	{

		printf("Hello world %d\n", i++);
		
	}
	
	return 0;


}

 

결과

728x90

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

C언어 for 2중 반복문  (0) 2021.09.13
C언어 do while 반복문  (0) 2021.09.13
C언어 기초 a++, ++a  (0) 2021.09.13
C언어 Scanf 문자열 입출력...  (0) 2021.09.13
C언어 for 반복문 기초  (0) 2021.09.12