Feu una funció que, donats dos enters
i
,
en retorni el màxim.
Interfície
C++
int max2(int a,int b);
C
int max2(int a,int b);
Java
publicstaticintmax2(int a,int b);
Python
max2(a, b) # returns int
MyPy Python
max2(a: int, b: int) ->int
Observació
Només cal enviar el procediment demanat; el programa principal serà
ignorat.
About statements
The official statement of a problem is always the one
in the PDF document. The HTML version of the statement
is also given to help you, but may contain some content
that is not well displayed. In case of doubt, always use the PDF.