Smallest number is always equal to 0 even though it's been assigned the value of arr[0] in the first place (that is if there's a problem in the loop). Though the loop works fine for largest and sum..?
Aucun commentaire:
Enregistrer un commentaire