If anyone need help with this you can ask me something.
If anyone need help with this you can ask me something.
What do you think are some of the major good points about PASCAL. I have never programmed in it or have any exposure to it. If I were a new programmer deciding between, say, Java and PASCAL, why would you recommend PASCAL?
Just curious..![]()
cause pascal was first language that I programmed in ... and I'm just learning java ... so i'm a profi in pascal and it is eazy and short programming language but i can't use registersas in assembler. but it's eazy and fast to make some short programme in pascal if you need something quickly
Cool, thanks for your opinion on pascal. Can you post some code? Nothing specific just some generic blocks that show structure. I think Python is one of the more aesthetically pleasing codes to look at. I have never seen pascal code. An odd request, I do admit, no harm if you prefer to not.
Thanks TGAM123!
sample program :
uses CRT {i'm using CRT - text console but you can use GRAFIKA too} {you can make your own too}
var i:integer;
p,n,c:string; {types of variables}
begin
clrscr; {clear screen}
write('HALLO! Please log in: ');
readln(n);
write('PASSWORD: ');
readln(p);
if n='root' then
if p='toor' then
while c<>'quit' then
begin
write('COMMAND');
readln(c);
clrscr;
end;
write('BYE BYE');
clrscr;
end.
Bookmarks