This commit is contained in:
2025-07-03 12:05:57 +09:00
parent e10edbe753
commit fea9a38b1d
27 changed files with 255 additions and 98 deletions

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

@@ -0,0 +1,10 @@
{
"language": "C",
"name": "課題4",
"description": "教科書の演習4ー4の解答",
"output": {
"type": "screenshot",
"content": "./assets/p44.png"
},
"note": ""
}

BIN
programs/p44/main Executable file

Binary file not shown.

18
programs/p44/main.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
int main(void) {
int n;
printf("Input positive integer: ");
scanf("%d", &n);
while (n > 0) {
printf("%d ", n--);
if (n == 0) {
printf("\n");
}
}
return 0;
}