20 lines
259 B
C++
20 lines
259 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
int main() {
|
|
int xPos = 0;
|
|
int endPos = 10;
|
|
|
|
while (true) {
|
|
xPos++;
|
|
cout << xPos << '\n';
|
|
|
|
if (xPos >= endPos) {
|
|
break;
|
|
}
|
|
}
|
|
|
|
cout << "Game Over! \n";
|
|
}
|