Please translate to SmallTalk?

Please translate to SmallTalk

int main()

{

sum = 0;

cin>>N;

sum = sumFunc(N);

cout<<<sum<<endl;

return 0;

}

int sumFunc(int N)

{

for (int i=0; i<N; I++)

{sum = sum + I;}

return sum;

}

There are no answers yet.
Be the first to answer this question.