#include <stdio.h>
#include<string.h>
int main() {
char a[100];
int b[100];
int m[100]={0};
int x,y=0,z,h=0,o=0;
fgets(a,100,stdin);
for(int i=97;i<=122;i++)
{
b[i-97]=i;
}
m[0]=0;
x=strlen(a);
for(int t=0;t<x;t++)
{
for(int p=97;p<=122;p++)
{
if(a[t]==b[p-97])
{
m[p-97]++;
}
}
}
for(int p=97;p<=122;p++)
{
printf("%c:%d\n",p,m[p-97]);
y++;
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: