I cant find the problem in my code

Help! I dont know what am i missing .

in the for loop you should compare a[j] with a[mini] not a[i]

Sorry!, i feel so dumb now

Its okay silly mistakes like this happens, practice is the only way to eliminate them and please mark the doubt as resolved.