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

20 lines
245 B
C++
Raw Normal View History

//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;
}
}