a[0] a[ 1] a[2]
You can set another variable.
department
1)a[0] and a[ 1] are compared, and the smaller one is stored in min.
2)min is compared with a[2], and the smaller one is stored in min.
3) Minimum output.