>>471
Nが条件(N>0)に合わなければ0を返す仕様で良いん?(´・ω・`)
int sum(int n){
if(n<=0)
return (0);
else
return(n+sum(n-1));
}