/* Program 1: Write a C program that reads array of characters up to 15 elements. The program does the following: (1)finds and prints the actual length of the input (2) finds the frequencies of letters a, b and c (3) finds the most frequent and the least frequent among characters a, b and c Compile and run your program */ #include #include #define SIZE 15 int main(){ char str[SIZE]; int len, c_a=0, c_b=0, c_c=0, i; printf("enter string \n"); scanf("%s",str); len=strlen(str); printf("actual length is %d\n",len); for(i=0;i c_b && c_a>c_c) printf("a is a most frequent\n"); else if(c_b> c_a && c_b>c_c) printf("b is a most frequent\n"); else printf("c is a most frequent\n"); //similar for least frequent return 0; }