You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SysY2022/test_cases/functional/67_reverse_output.sy

19 lines
198 B

void reverse(int n) {
int next;
if (n <= 1) {
next=getint();
putint(next);
}
else {
next=getint();
reverse(n-1);
putint(next);
}
}
int main() {
int i=200;
reverse(i);
return 0;
}