wrote most of report
This commit is contained in:
9
programs/prog2/info.json
Normal file
9
programs/prog2/info.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"name": "演習1ー6",
|
||||
"description": "プロンプトから読み込んだ整数値から7を減じた値を表示するプログラム。",
|
||||
"output": {
|
||||
"type": "screenshot",
|
||||
"content": "./assets/prog2.png"
|
||||
},
|
||||
"note": ""
|
||||
}
|
||||
BIN
programs/prog2/main
Executable file
BIN
programs/prog2/main
Executable file
Binary file not shown.
12
programs/prog2/main.c
Normal file
12
programs/prog2/main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user