Advertisement
trojanqqqq

Untitled

Oct 17th, 2019
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.56 KB | None | 0 0
  1. #define L 100
  2.  
  3. main()
  4. {
  5.     clrscr();
  6.  
  7.     char s1[L];
  8.  
  9.     char s2[L];
  10.  
  11.     char seps[] = " ,\t\n";
  12.  
  13.     char *token;
  14.  
  15.     printf("Enter the sentence\n");
  16.  
  17.     gets(s1);
  18.  
  19.     token=strtok(s1,seps);
  20.  
  21.     while (token !=NULL)
  22.  
  23. }
  24. else
  25. {
  26.     if (strstr(token, "ать") || strstr(token, "ять") || strstr(token, "уть") || strstr(token, "ють"))
  27.  
  28.     strcat(s2, "не");
  29.    
  30.     strcat(s2, token);
  31. }
  32. else
  33. {
  34.     strcat(s2, token);
  35.  
  36.     strcat(s2," ");
  37.  
  38.     token=strtok(NULL,seps);
  39. }
  40. else
  41. {
  42. printf("%s\n", s2);
  43.  
  44. getch();
  45.  
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement