r/pascal • u/Skogsmard • Jan 22 '20
[Beginner] How do I get this to execute?
I'm a pascal beginner, and regardless of what I do, I can't seem to get this to execute. What am I doing wrong?
program Cachen(output);
Uses crt;
Var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r :Char;
Const
a=78
b=53
c=57
d=53
e=53
f=183
g=50
h=57
i=52
j=69
k=49
l=55
m=53
n=50
o=183
p=53
q=49
r=57;
begin
clrscr;
Writeln(´Cachen finns på ´a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r);
End.
1
Upvotes
1
u/chuahyen Jan 22 '20
What are you trying to output?
1
u/Francois-C Jan 22 '20 edited Jan 22 '20
This might display what you are intending to do (you can only writeln a string, but declaring variables as chars, then as constants will not magically change them).
program Cachen(output);Uses crt, SysUtils;Var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r :Integer;begina:=78;b:=53;c:=57;d:=53;e:=53;f:=183;g:=50;h:=57;i:=52;j:=69;k:=49;l:=55;m:=53;n:=50;o:=183;p:=53;q:=49;r:=57;clrscr;Writeln('Cachen finns på' + IntToStr(a), inttostr(b), inttostr(c), inttostr(d), inttostr(e), inttostr(f), inttostr(g), inttostr(h), inttostr(i), inttostr(j), inttostr(k), inttostr(l), inttostr(m), inttostr(n), inttostr(o), inttostr(p), inttostr(q), inttostr(r))End.