public class DiGui {
public static int fn(int n){
if(n==1){
return 8;
}
else{
return fn(n-1)+6;
}
}
public static void main(String[] args){
System.out.println(fn(4));
}
}
26
public class DiGui {
public static int fn(int n){
if(n==1){
return 8;
}
else{
return fn(n-1)+6;
}
}
public static void main(String[] args){
System.out.println(fn(4));
}
}
26