Created
October 15, 2012 12:49
-
-
Save vertrigo/3892290 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| program lab7; | |
| uses crt; | |
| var st:string; i,k:integer; | |
| Begin | |
| clrscr; | |
| write('Введите строку символов: '); | |
| readln(st); | |
| k:=0; | |
| for i:=1 to length(st) do | |
| if (st[i]=',') and (st[i+1]=':') then k:=k+1; | |
| if k > 0 then | |
| writeln('В строке присутствуют два соседствующих символа ",:", количество:',k:3) | |
| else | |
| writeln('В строке отсутствуют два соседствующих символа ",:"'); | |
| Readkey; | |
| End. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment