Cleaned up directory a bit...
[mirrors/Programs.git] / turbopascal / MORSE.PAS
... / ...
CommitLineData
1program morse;\r
2uses crt;\r
3const\r
4tab: array ['A'..'Z'] of string[6] = (\r
5 '._','_...','_._.','_..','.','.._.','__.','....','____','..',\r
6 '.___','_._','._..','__','_.','___','.__.','._.','...','_','.._',\r
7 '..._','_.__','__..');\r
8var\r
9s:string;\r
10i:byte;\r
11\r
12begin\r
13writeln ('***PROGRAM *M*O*R*S*E* ---- PREVEDE TEXT DO MORSEOVY ABECEDY*** ');\r
14write ('ZADEJ TEXT PRO PREVOD: '); READLN (s);\r
15\r
16FOR i:= 1 TO LENGTH (s) DO\r
17CASE s[i] OF\r
18 'A'..'Z','a'..'z': WRITE (Tab[Upcase (s[i])],'|');\r
19 ' ' WRITE ('|');\r
20 END;\r
21end.\r
This page took 0.39266 seconds and 4 git commands to generate.