/C06004 - Đếm ký tự

<Problem>

https://code.ptit.edu.vn/student/question/C06004
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
#include <ctype.h>
int main() {
	char s[1005];
	gets(s);

	int letter = 0;
	int digit = 0;
	int character = 0;

	for (int i = 0; i < strlen(s); i++) {
		if (isalpha(s[i])) letter++;
		else if (isdigit(s[i])) digit++;
		else character++;
	}

	printf("%d %d %d", letter, digit, character);

	return 0;
}