diff --git a/lab3123.c b/lab3123.c new file mode 100644 index 0000000..d4bbac1 --- /dev/null +++ b/lab3123.c @@ -0,0 +1,74 @@ +#include +#include +#include +#include +int main () +{ + char* text=(char*)malloc(10000*sizeof(char)); + char c; + int i=0,n=0,m=0,len=0,fl=0; + while ((c=getchar()) !='\n') + { + text[i++]=c ; + } + + for (i=0;i<10000;i++) + { + if (text[i] == '.' || text[i] == '?' || text[i] == ';') + { + i++; + text[i] = '\n'; + } + if (text[i]=='\t') + { + text[i]=0; + } + + + } + + if (text[i] == '.' || text[i] == '?' || text[i] == ';') + { + len=i; + for (i>0;i