using UnityEngine; public class While6 : MonoBehaviour { public int a = 0; public int b = 0; // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { while (b != 0) { int reste = a % b; a = b; b = reste; print(a); } } // Update is called once per frame void Update() { } }