Steps to traverse a one-dimensional array using a for loop
1️⃣ Initialize a loop variable to 0
2️⃣ Check if the loop variable is less than the array length
3️⃣ Access the array element at the current index
4️⃣ Increment the loop variable
5️⃣ Repeat steps 2-4 until the loop variable is no longer less than the array length