min function corrected

This commit is contained in:
sprintyaf 2020-07-07 15:05:07 +04:00
parent 363f43c942
commit 1002126449

View File

@ -8,7 +8,7 @@ Output: if the array contains the value, returns its index (index of its first o
*/
int min(int first, int second){
if(first > second){
if(first < second){
return first;
} else {
return second;