Negative days completion.

This commit is contained in:
2025-05-11 00:44:19 +09:00
parent 1158462054
commit f12d0bbc49
42 changed files with 377 additions and 79 deletions

10
programs/lst38/info.json Normal file
View File

@@ -0,0 +1,10 @@
{
"language": "C",
"name": "演習課題 1 List 3-8",
"description": "整数値の最下位桁判定プログラム",
"output": {
"type": "screenshot",
"content": "./assets/lst38.png"
},
"note": ""
}

BIN
programs/lst38/main Executable file

Binary file not shown.

15
programs/lst38/main.c Normal file
View File

@@ -0,0 +1,15 @@
#include <stdio.h>
int main(void) {
int n;
printf("Input integer: ");
scanf("%d", &n);
if (n % 10 == 5)
puts("Ones digit of the integer is 5.");
else
puts("Ones digit of the integer is not 5.");
return 0;
}