// Purely function declaration
// int myMax2(int, int);
// int myMax2(int m, int n);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
int a = -10, b = -27;
int c = -14;
Serial.println(myMax2(a, b));
Serial.println(myMax3(a, b, c));
while (1);
}
// Function definition
int myMax2(int u, int v) {
int max;
// if (u > v) {
if (u >= v) {
max = u;
} else {
max = v;
}
return max;
}
int myMax3(int A, int B, int C) {
return myMax2(myMax2(A, B), C);
}