#include
int sum1(int n){
int x=0,i;
for(i=0; i <= n;i++){
x = x + i;
}
return(x);
}//¹Ýº¹
int sum2(int n){
if (n<=1) return 1;
else return(n+sum2(n-1));
}//¼øȯ
int main(void){
int a, total1,total2;
printf("´õÇÒ °¹¼ö ÀÔ·Â : ");
scanf("%d",&a);
total1=sum1(a);
total2=sum2(a);
printf("¹Ýº¹%d ¼øȯ%d n",total1,total2);
}