using System.Collections; using System.Collections.Generic; using UnityEngine; public class CodeExample : MonoBehaviour { int[] marks = new int[5] { 99, 98, 92, 97, 95 }; // Start is called before the first frame update void Start() { for (int i=0; i < marks.Length; i++) { Debug.Log("marks in index i is " + marks[i]); } marks[3] = 100; Debug.Log("marks in index 3 is " + marks[3]); for (int i = 0; i < marks.Length; i++) { Debug.Log("marks in index i is " + marks[i]); } } // Update is called once per frame void Update() { } }