以下哪项是分支结构的正确写法?
while (n > 0) cout << "Positive";
if (x > 0) { cout << "Positive"; else cout << "Not"; }
for (int i = 0; i < n; i++) cout << "Positive";
if (x > 0) cout << "Positive";