added programs

This commit is contained in:
2025-04-30 01:50:13 +09:00
parent 6acb05157f
commit 88519283e1
20 changed files with 132 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
{
"name": "考察:List 1-11",
"description": "List 1-11 にて、入力に3.14や0.5などの小数を入力すると出力はどうなるか。",
"output": {
"type": "screenshot",
"content": "./assets/prog5.png"
},
"note": "入力した全ての小数が繰り下げられている。\\\\texttt{\\%d}は整数しか表示できず、小数の場合は小数部を切り捨て、整数部のみ表示している。"
}
BIN
View File
Binary file not shown.
+12
View File
@@ -0,0 +1,12 @@
#include <stdio.h>
int main(void) {
int no;
printf("Input an integer: ");
scanf("%d", &no);
printf("You inputed %d.\n", no);
return 0;
}