mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-04-05 03:29:46 +08:00
min function corrected
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user