Pascal
Pascal is an influential imperative and procedural programming language, intended to encourage good programming practices using so called structured programming and data structuring.
Application
Any
Platform
Any
License
Any
You forgot to put a readln; or readkey; as the second last line...
dziesietny}
var
Power, D : Word;
I : Byte;
begin
Power := 1;
D := 0;
for I := Length(B) downto 1 do
begin
if B = '1' then D := D + Power;
Power := 2 * Power;
end;...
Do i make "case..." a new procedure?
And then run it as
Welcome;
Obtain:
case;
Display;
?
I am not too sure how to integrate this into what i have already, any further direction is...
Excellent thanks a lot! I will try that in a minute and give you some more feedback in a bit!
I should have known about the divide being a real number *derp*
Thanks!
Great start for a beginning program! As for your
what to do at the ***, try a case statement.
case Obtainoperaton of
'*' : Multiply;
'/' : Divide;
'+' : Add;
'-'...
I am studying computing at A-level so i have to use Pascal
I am very new to this, this is what i have so far:
PROGRAM Calculator;
USES
CRT, SYSUTILS;
VAR
Number1, Number2,...
I made a very dodgy program for this, but it doesnt stop a question being asked more than once. I know this is a very dodgy way of doing it, but its the only way i can do it(im pretty new to...
I need to make a quiz with 30 question (15 multiple choice, 15 cloze questions), and have the order of all questions randomized. It also must calculate the result as a percent and display the...
: How can I change font size?
Use to procedure : SetTextStyle(Font, Direction, Size); of the graph unit...
=($3fff-4)) then writeln(#13#10' >> ') else
case ch of
#13:{enter}begin
buf:=#13;
buf:=#10; { CR + LF }
writeln;
inc(i...
I'll explain some of what goes on in this procedure.
Odd is a boolean function in Pascal that determines
whether an integer is either odd(TRUE) or
even(FALSE). Div is the integer form of...
Hi, i'm trying to write a typing program with pascal, in this program, the user is free to type as much as he wants, and when he feels like it he saves as a text file, however, i'm stuck in...
How can I change font size?
10q mate it's been very useful!
Arrow keys can't be initialized, but you can check the value
inside a program by either a const or an equated
literal. I've written a program to know what the keyboard
is sending back. All you...
I want to know how to initialize arrow keys Please help!! URGENT
HEY I DIDN'T GET YOU WELL
this is my mail;
saninbababature@live.com
just make the contact
Sorry mate i don't know what is pascal, i am very new of the computer field. I am gathering much things. I am searching and enhancing my knowledge. Thanks
p90x Workout
I've written a small compiler for a subset of the Pascal language. Now it needs thorough testing for bugs and inconsistencies. Any reports or suggestions are very much appreciated.
The compiler is...