Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main()
- {
- int n, a[91]={0}, i;
- printf("Enter Message: ");
- for(n=0 ; n!='\n' ;)
- {
- scanf("%c",&n);
- for(i=65 ; i<91 ; i++)
- if(n==i || n==i+32)
- a[i]++;
- }
- for(i=65 ; i<91 ; i++)
- if(a[i]>1)
- printf("%c: %d times\n",i,a[i]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement