wrote most of report

This commit is contained in:
2025-04-27 14:34:55 +09:00
parent 9f68b841b2
commit d8ae49b00d
18 changed files with 174 additions and 82 deletions

9
programs/prog1/info.json Normal file
View File

@@ -0,0 +1,9 @@
{
"name": "演習1ー5",
"description": "プロンプトから読み込んだ整数値に13を加えた値を表示するプログラム。",
"output": {
"type": "screenshot",
"content": "./assets/prog1.png"
},
"note": ""
}

BIN
programs/prog1/main Executable file

Binary file not shown.

12
programs/prog1/main.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main(void) {
int x = 0;
printf("Input integer: x = ");
scanf("%d", &x);
printf("Result: x + 13 = %d\n", x + 13);
return 0;
}

9
programs/prog2/info.json Normal file
View File

@@ -0,0 +1,9 @@
{
"name": "演習1ー6",
"description": "プロンプトから読み込んだ整数値から7を減じた値を表示するプログラム。",
"output": {
"type": "screenshot",
"content": "./assets/prog2.png"
},
"note": ""
}

BIN
programs/prog2/main Executable file

Binary file not shown.

12
programs/prog2/main.c Normal file
View File

@@ -0,0 +1,12 @@
#include <stdio.h>
int main(void) {
int x = 0;
printf("Input integer: x = ");
scanf("%d", &x);
printf("Result: x - 7 = %d\n", x - 7);
return 0;
}