Negative days completion.
This commit is contained in:
10
programs/lst33/info.json
Normal file
10
programs/lst33/info.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"language": "C",
|
||||
"name": "演習課題 1 List 3-3",
|
||||
"description": "5の倍数判定プログラム",
|
||||
"output": {
|
||||
"type": "screenshot",
|
||||
"content": "./assets/lst33.png"
|
||||
},
|
||||
"note": ""
|
||||
}
|
||||
BIN
programs/lst33/main
Executable file
BIN
programs/lst33/main
Executable file
Binary file not shown.
15
programs/lst33/main.c
Normal file
15
programs/lst33/main.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int n;
|
||||
|
||||
printf("Input integer: ");
|
||||
scanf("%d", &n);
|
||||
|
||||
if (n % 5)
|
||||
puts("The number is not divisible by 5.");
|
||||
else
|
||||
puts("The number is divisible by 5.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user