#include <iostream>

using namespace std;

int main() {
	
	//while문, do while문

	string str = "Panda";
	int i = 0;
	while (str[i] != '\\0') {
		cout << str[i];
		i++;
	}
}
#include <iostream>

using namespace std;

int main() {
	
	//while문, do while문

	string str = "Panda";
	bool a = true;
	bool b = false;
	while (a) {
		//무한으로 실행
	}
	while (b) {
		//실행되지않음
	}
}
#include <iostream>

using namespace std;

int main() {
	
	//while문, do while문

	int j = 0;
	do {
		cout << "while문 입니다." << endl;
		j++;
	} while (j < 3);
	//먼저 1회 실행하고 조건을 검사한다.
}