C++
#include
#include
#include
using namespace std;
int main() {
int a,b,c,d,r,r2,r3;
cin >> a >> b >> c >> d;
r=min(a,b);
r2=min(r,c);
r3=min(r2,d);
cout << r3;</span>
return 0;
}
Pascal
program Project1;
var a,b,c,d:integer;
begin
readln (a,b,c,d);
if ((a<=b) and (a<=c) and (a<=d)) then begin<br>writeln (a);
end
else if ((b<=a) and (b<=c) and (b<=d)) then begin<br>writeln (b);
end
else if ((c<=b) and (c<=a) and (c<=d)) then begin<br>writeln (c);
end
else begin
writeln (d);
end;
end.