Skip to content

Commit 644b58c

Browse files
fixed output (#84)
1 parent 0da8b5a commit 644b58c

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

maths/tower_of_hanoi.c

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,21 @@ void hanoi(int n, char A, char B, char C) {
1010
}
1111

1212
void test() {
13-
/**
14-
* output:
13+
/*
1514
* move from A to B
1615
*/
1716
hanoi(1, 'A', 'B', 'C');
1817
printf("---------------------\n");
1918

20-
/**
19+
/*
2120
* move from A to C
2221
* move from A to B
2322
* move from C to B
2423
*/
2524
hanoi(2, 'A', 'B', 'C');
2625
printf("---------------------\n");
2726

28-
/**
27+
/*
2928
* move from A to B
3029
* move from A to C
3130
* move from B to C

0 commit comments

Comments
 (0)