#include <iostream>

using namespace std;

int main() {

	char a[10] = { 'a', 'b', 'c', 'd','e' };

	for (int i = 0; i < 5; i++) {
		cout << a[i] << endl;
	}
}

// 1. 반복문에 사용할 카운터의 값을 초기화
// 2. 반복문을 진행할 것인지 '조건 검사'
// 3. 반복문 몸체를 수행합니다.
// 4. 카운터의 값을 변화합니다.
#include <iostream>

using namespace std;

int main() {

	char a[10] = { 'a', 'b', 'c', 'd','e' };

	for (int i = 0; i < 5;) {
		cout << a[i] << endl;
		i++;
	}
}
//이런 방식도 가능