<commit_before><commit_msg>task1.c <NAME> 10в HW-4, ПОПРАВКА<commit_after>#include <stdio.h>

int main() {
	int  n, c=0, digits_count=0, digit[10];
	scanf("%d", &n);
	
	do {
		c=n%10;
		n=n/10;
		digit[digits_count]=c;
		digits_count++;
	}while(n>0);
	int one=0, two=0, three=0, four=0, five=0, six=0, seven=0, eight=0, nine=0, zero=0;
	
	for( int i=0 ; i<digits_count ; i++ ) {
		switch(digit[i]) {
			case 1: one++; break;
			case 2: two++; break;
			case 3: three++; break;
			case 4: four++; break;
			case 5: five++; break;
			case 6: six++; break;
			case 7: seven++; break;
			case 8: eight++; break;
			case 9: nine++; break;
			case 0: zero++; break;
		}	
	}
	
	if( one>=1 ) {
		printf("\n1: %d times", one);
	} 
	if( two>=1 ){ 
		printf("\n2: %d times", two);
	}
	if( three>=1) {
		printf("\n3: %d times", three);
	}
	if( four>=1 ) {
		printf("\n4: %d times", four);
	}
	if( five>=1) { 
		printf("\n5: %d times", five);
	}
	if( six>=1 ) {
		printf("\n6: %d times", six);
	}
	if( seven>=1) {
		printf("\n7: %d times", seven);
	}
	if( eight>=1 ) {
		printf("\n8: %d times", eight);
	}
	if( nine>=1 ) {
		printf("\n9: %d times", nine);
	}
	if( zero>=1) {
		printf("\n0: %d times", zero);
	}
	return 0;
} 

{'fraction_non_alphanumeric': 0.2400990099009901, 'fraction_numerical': 0.04537953795379538, 'mean_word_length': 3.1399317406143346, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 16, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7453943', 'n_tokens_mistral': 619, 'n_tokens_neox': 551, 'n_words': 140}