marcus2vinicius

Function 02PASCAL

Sep 13th, 2011
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.29 KB | None | 0 0
  1. Program Fun02 ;
  2. var
  3.  n:integer;
  4.  
  5. procedure teste(n:integer);
  6. Begin
  7.  if (n > 0) then
  8.    Writeln('Resultado: 1')
  9.  else Writeln('Resultado: 0');  
  10. End;  
  11.  
  12.  Begin
  13.   Write('Informe Um Valor: ');
  14.   readln(n);
  15.   teste(n);  
  16.  Writeln('            by Marcus Vinicius');
  17.  End.
Advertisement
Add Comment
Please, Sign In to add comment