FRIHOSTFORUMSSEARCHFAQTOSBLOGSCOMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Pascal





lvideos
the program said has error in the fifth line where?

Code:

uses crt;
var
customer-name: string
balance valor_debitar, total: Real;
begin
clrscr;
writeln ( 'enter the name of the client');
readln (client_name);
writeln ( 'enter the amount of your balance');
readln (balance);
writeln ( 'the amount to be debited and');
readln (valor_debitar);
total: = (balance) - (valor_debitar);
if total <0 then
begin
write ( 'was negative');
end;
write ( 'Total =', total: 5:2);
readkey
end.
blueray
Hmm....

You may try this,
Code:

var
customer_name: string;
balance_valor_debitar, total: Real;
begin
clrscr;


It looks like pascal does't support hypen and space variable.
^([_]+)([a-zA_Z_]*{1, 64})$

for much easy to write it.
You can try to google and download a version of pascal called turbo pascal or borland pascal.
It has an IDE that simplify many stuffs.
Related topics
What computer languages you know?
A "small" list of free apps
Ile masz lat
How To : Secure Your PHP Website
If Hardly Davidson made Computers instead of Motorcycles...
[Question] Visual Basic C++, PHP, mySQL language guides...
Programmation
Programming links, info, and tutorials
Co s±dzicie o Informatyce w szkołach?
Putting something on every page...
Pascal's Triangle creation code
PROGRAMAÇĂO
Making a web server in Pascal...
About pascal programming language
.cgi files using Irie Pascal
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.