Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(int argc, char *argv[])
- {char str[51];
- printf("Vvedite stroky: ");gets(str);
- int pos=0,min=0;
- for(int j=0;str[j]!=0;j++)if(str[0]==str[j])min++;
- for(int i=0;str[i]!=0;i++){
- int count=0;
- for(int j=0;str[j]!=0;j++)if(str[i]==str[j])count++;
- if(min>count){
- min=count;
- pos=i;
- }}
- printf("naimenee vstrechaetsya %c\n",str[pos]);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement