diff --git a/assets/p42.png b/assets/p42.png index 8694279..004f634 100644 Binary files a/assets/p42.png and b/assets/p42.png differ diff --git a/document.yaml b/document.yaml index abbc4ee..ce139a1 100644 --- a/document.yaml +++ b/document.yaml @@ -12,7 +12,7 @@ date: turnin: year: 令和7年 month: 07月 - day: 08日 + day: 09日 school_name: 岐阜工業高等専門学校 department: 電子制御工学科 diff --git a/main.tex b/main.tex index 97ca324..5b6dd09 100644 --- a/main.tex +++ b/main.tex @@ -5,7 +5,7 @@ \studentid{2024D14} \seatingnum{15} \reportdate{令和7年}{07月}{03日} -\turnindate{令和7年}{07月}{08日} +\turnindate{令和7年}{07月}{09日} \schoolname{岐阜工業高等専門学校} \department{電子制御工学科} \subject{情報処理I} diff --git a/output/main.pdf b/output/main.pdf index 798b6fc..f681015 100644 Binary files a/output/main.pdf and b/output/main.pdf differ diff --git a/programs/p42/main b/programs/p42/main index c15d588..824322a 100755 Binary files a/programs/p42/main and b/programs/p42/main differ diff --git a/programs/p42/main.c b/programs/p42/main.c index e295cd4..03b0519 100644 --- a/programs/p42/main.c +++ b/programs/p42/main.c @@ -3,11 +3,17 @@ int main(void) { int a, b, i, ans; - printf("Input upper limit: "); + printf("Input integer: "); (void)scanf("%d", &a); - printf("Input lower limit: "); + printf("Input integer: "); (void)scanf("%d", &b); + if (a < b) { + a = a^b; + b = a^b; + a = a^b; + } + i = b; ans = 0;