user
Write a computer program to calculate the sum of the natural numbers up to given number, n.
Response:
assistant
function NaturalNumberSum (n){
	let sum = 0;
	for(let i = 1; i <= n; i++){
		sum += i;
	}
	return sum;
}