using UnityEngine;
public class For3 : MonoBehaviour
{
public int num;
public int som;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
for (int i = 0; i<=num; i++)
{
som = som + i;
print(som);
}
}
// Update is called once per frame
void Update()
{
}
}