#include <stdio.h>
//関数のプロトタイプ宣言
//ここ↓を埋めてね1
int max(int,int);
//main関数
int main(void) {
int a,b,c,d;
//ここ↓を埋めてね2
a=1;
b=5;
c=3;
d=4;
int saidai=max(max(a,b),max(c,d));
printf("%d,%d,%d,%dのうち最大値となるのは%dである。",a
,b
,c
,d
,saidai
);
return 0;
}
//max関数の定義
int max(int x, int y){
//ここ↓を埋めてね3
return(x>y) ? x:y;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8v6Zai5pWw44Gu44OX44Ot44OI44K/44Kk44OX5a6j6KiACi8v44GT44GT4oaT44KS5Z+L44KB44Gm44Gt77yRCiAgIGludCBtYXgoaW50LGludCk7Ci8vbWFpbumWouaVsAppbnQgbWFpbih2b2lkKSB7CiAgICBpbnQgYSxiLGMsZDsKLy/jgZPjgZPihpPjgpLln4vjgoHjgabjga3vvJIKCiAgICBhPTE7CiAgICBiPTU7CiAgICBjPTM7CiAgICBkPTQ7CiAgIGludCBzYWlkYWk9bWF4KG1heChhLGIpLG1heChjLGQpKTsKICAgIHByaW50ZigiJWQsJWQsJWQsJWTjga7jgYbjgaHmnIDlpKflgKTjgajjgarjgovjga7jga8lZOOBp+OBguOCi+OAgiIsYSxiLGMsZCxzYWlkYWkpOwogIAoJcmV0dXJuIDA7Cn0KCi8vbWF46Zai5pWw44Gu5a6a576pCmludCBtYXgoaW50IHgsIGludCB5KXsKLy/jgZPjgZPihpPjgpLln4vjgoHjgabjga3vvJMKICByZXR1cm4oeD55KSA/IHg6eTsKfQoKCg==