/**
*
* Ashish Patel
* e: ashishsushilPatel@gmail.com
* w: https://ashish.me
*
*/
class SimpleRecursion {
static void fun(int n) {
if (n == 0) {
return;
}
System.out.println(n);
fun(n-1);
System.out.println(n);
}
public static void main(String[] args) {
fun(3);
}
}
Created 2021-10-13T11:46:36+01:00, updated 2021-10-19T10:51:48+01:00 · History · Edit