This repository has been archived on 2022-12-27. You can view files and clone it, but cannot push or open issues or pull requests.
compilateurMIPS/tests/27_boom.test

18 lines
237 B
Text
Raw Permalink Normal View History

2022-12-14 00:19:26 +01:00
void countdown (int n) {
if (n != 0) {
puti(n);
puts("\n");
countdown(n - 1);
}
else {
puts("BOUM!\n");
}
}
int main () {
puts("Count from? ");
countdown(geti());
return 0;
}