Do while needs to run opposite of how it's going

class Main {
public static void main(String args) {
int num = 1;

do {
System.out.println(num);
num++;
} while (num <= 10);

int Num = 1;
do {
System.out.println(Num);
Num++;
} while (Num <= 20);
}
}

This is what the output supposed to be:
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1

This is what I’m getting
1
2
3
4
5
6
7
8
9
10
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

how do I fix it?

Hi @PerryChapman can you post a link to your repl please?