Created
June 17, 2014 10:19
-
-
Save truelecter/ca9177010a7d1e1bc176 to your computer and use it in GitHub Desktop.
Matrix in Pascal
This file contains 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 SLM; | |
uses crt; | |
var a:byte; | |
function exkey:boolean; | |
begin | |
if keypressed then | |
if (ord(readkey)=13) then exkey:=true | |
else exkey:=false | |
else exkey:=false; | |
end; | |
begin | |
textbackground(black); | |
textcolor(lightgreen); | |
clrscr; | |
randomize; | |
repeat | |
a:=random(255); | |
if (a=13) or (a=10) then a:=5; | |
write(chr(a)); | |
until exkey; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment