• Image 1
  • Image 2
  • Image 3
  • Image 4
  • Image 5
  • Image 6
  • Image 7




Tuesday, June 5, 2012

TURBO PASCAL -TUTORIAL PROCEDURE


Pascal, pascal, and pascal… this week I want giving you about it… because many syntaxin pascal…..

Ok.. welcome visitors in my page… your choice is very good, because in here you will getting someone is very interesting, that is IT knowledge…

Now.. I want giving you IT knowledge about “PASCAL”… Previous you know this progam language ??... If do not know, let’s do read this article…

happy reading visitors…. !!

You can Copy this program then paste in your software compilelike “turbo pascal”. :


Example 1:

uses crt;
VAR p, l, t, s : real;
PROCEDURE log;
VAR v, vs :  real;
BEGIN
v  := p * l * t;
vs := s * s * s;
writeln ('Volume Log is : ', v);
writeln ('Volume Box is : ', vs);
END;
BEGIN
clrscr;
writeln ('For Log');
writeln;
write ('Input Long      : '); readln (p);
write ('Input Wide      : '); readln (l);
write ('Input High      : '); readln (t);
writeln;
writeln;
writeln ('for Box');
write ('Input Side      : '); readln (s);
log;
readln;
END.


And result :

If your input number is “2, 5, 9, 10” then

For Log

Input Long      : 2
Input Wide      : 5
Input High      : 9

for Box

Input Side      : 10 

Volume Log is : 90
Volume Box is :1000



Logic ::

Begin
>> early in pascal programming

Procedure
>> statement was provided by pascal using for moving other statement but will back to the procedure it..

v  := p * l * t;
>> operators for count Log

vs := s * s * s;
>> operators for count Box

End
>> 
end of the programming pascal


This is little example for procedure TURBO PASCAL programing....
PROCEDURE usually use for take statement on excellent program....
And for to substrach code...

C'mon reading my other article....
Thank for reader and visitors....
Don’t forget to cameback in my site..
See you later.

No comments:

Post a Comment