public class Sum {
public static int count(int n) {
if(n=1)
return 1;
if (n > 1) {
return count(n - 1) + n;
}
}
}
2024-01-21 15:04:05
public class Sum {
public static int count(int n) {
if(n=1)
return 1;
if (n > 1) {
return count(n - 1) + n;
}
}
}