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