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