public static void main(String[] args) {
int a = sum(100);
System.out.println(a);
}
public static int sum(int i ){
if(i==1){
return 1;
}
return i+sum(i-1);
}
public static void main(String[] args) {
int a = sum(100);
System.out.println(a);
}
public static int sum(int i ){
if(i==1){
return 1;
}
return i+sum(i-1);
}