I had this assignment where it searches a text file and prints the min and maximum number of occurrences. what its supposed to do is print the letter or letters associated with min and max and that's where im stumped. Any help would be appreciated.
Code:printf("Number of Letter Occurrences:\n");
for(i=0;i<26;i++){
printf("%d\t",input_c[i]);
}
printf("\n\n");
printf("Percentage of Letter Occurrences:\n");
for(i=0;i<26;i++){
total=(input_c[i]/26.0)*100;
array[i]=total;
printf("%.2f%%\t",total);
}
printf("\n\n");
for(i = 0; i < 26; i++)
{
if(input_c[i] > max)
{
max = input_c[i];
}
else if(input_c[i] < min)
{
min = input_c[i];
}
}
printf("Min number = %d\n",min);
printf("Least Frequent Characters: %c\n", minchar);
printf("Max number = %d\n",max);
printf("Most Frequent Characters: %c\n", maxchar);