Negative days completion.
This commit is contained in:
10
programs/lst36/info.json
Normal file
10
programs/lst36/info.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"language": "C",
|
||||
"name": "演習課題 1 List 3-6",
|
||||
"description": "2つの整数値の等価検証プログラム",
|
||||
"output": {
|
||||
"type": "screenshot",
|
||||
"content": "./assets/lst36.png"
|
||||
},
|
||||
"note": ""
|
||||
}
|
||||
BIN
programs/lst36/main
Executable file
BIN
programs/lst36/main
Executable file
Binary file not shown.
18
programs/lst36/main.c
Normal file
18
programs/lst36/main.c
Normal file
@@ -0,0 +1,18 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
int n1, n2;
|
||||
|
||||
printf("Integer 1: ");
|
||||
scanf("%d", &n1);
|
||||
|
||||
printf("Integer 2: ");
|
||||
scanf("%d", &n2);
|
||||
|
||||
if (n1 == n2)
|
||||
puts("Both values are equivalent to each other.");
|
||||
else
|
||||
puts("Both values are not equivalent to each other.");
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user