CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <iostream>
using namespace std;
int main() {
int x; int y = 8;
for(int x = 1; x < 20; x++) {
if (x <= 10) {
cout << x << "\n ";
}
else {
cout << y-- <<"\n " ;
}
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run