1
0
Fork 0
This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
uni-m.cds-adv-prog/ex2.4/min.cc
2019-12-10 18:04:54 +01:00

19 lines
245 B
C++
Executable file

//min.cc
namespace mylib {
double min( double a, double b ) {
if ( a < b ) {
return a;
}
return b;
}
int min( int a[], int size ) {
int m = a[0];
for( int i = 1; i < size ; ++i ) {
m = min(a[i], m);
}
return m;
}
}