Pascal:
program Main;
uses crt;
var a,b: integer;
begin
readln(a,b);
If(a>b) then writeln(b);
else writeln(a);
end.
C++:
#include
int main() {
int a,b;
std::cin >> a >> b;
if(a >b) std::cout << b;<br>else std::cout << a;<br>system("pause");
return 0;
}