mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
min function corrected
This commit is contained in:
parent
363f43c942
commit
1002126449
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user