二、(一)請將下列 C++語言的迴圈程式以 for 迴圈方式改寫,並寫出此程式 片段輸出的結果。(5 分)
int i=1;
while (i <= 10)
{
if (i < 5 && i !=2)
std::cout << 'X';
i ++;
}