diff --git a/count.c b/count.c new file mode 100644 index 0000000..a969dba --- /dev/null +++ b/count.c @@ -0,0 +1,25 @@ +#include + +int count_char_occurrences(const char *input_str, char target_char) { + int count = 0; + + while (*input_str) { + if (*input_str == target_char) { + count++; + } + input_str++; + } + + return count; +} + +int main() { + const char *input_string = "Hello, World!"; + char target_character = 'l'; + + int result = count_char_occurrences(input_string, target_character); + + printf("The character '%c' appears %d times in the given string.\n", target_character, result); + + return 0; +} \ No newline at end of file diff --git a/jump.html b/jump.html new file mode 100644 index 0000000..270f964 --- /dev/null +++ b/jump.html @@ -0,0 +1,63 @@ + + + + シンプルなジャンプゲーム + + + + +

シンプルなジャンプゲーム

+
+
+
+
+ + + + + + diff --git a/kadai1/kadai1 b/kadai1/kadai1 deleted file mode 100644 index e69de29..0000000 --- a/kadai1/kadai1 +++ /dev/null