*/
If you have a PH account, you can customize your PH profile.
*/

View SAMPLES\RECRSVIO.PAS

Portable ISO Standard Pascal in C, version 3.8

Submitted By: WEBMASTER
Rating: starstarstarstar (Rate It)


(*$c+*)
program test(input,output);
var i,j,x,y : integer;
    w : real;
function tester(a, b, c : integer) : integer;
begin
        write(': a = ', a : 3, ' : ');
        write('b = ', b : 3, ' : ');
        write('c = ', c : 3, ' :');
        write(': a + b + c ==> ');
        tester := a + b + c
end;
begin
        if system('cls') = 0 then ;
        write('type integer x: '); readln(x);
        write('type integer y: '); readln(y);
        write('type in real w: '); readln(w);
        if system('cls') = 0 then ;
for i := 0 to 5 do
  begin
        x := x - i; y := y - i;
        w := w - i; j := trunc(w);
        writeln('Real number w = ', w : 5 : 5, '.');
        {SPECIFIERS OF THE FORM
                "w : total_width : precision"
         AND
                "w : total_width"
         WORK ON THIS SYSTEM.}

        writeln;
        writeln('tester{w,y,x} :', tester(j, y, x) : 5);
        writeln;
        writeln('tester{y,x,w} :', tester(y, x, j) : 5);
        writeln;
        writeln('tester{x,w,y} :', tester(x, j, y) : 5);
        writeln
  end
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.