Jump to content

[PASCAL] Informatică Clasa a X-a - Capitolul #1 (Subprograme) - Lecţia 1.2.3.2


Leventhe
 Share

Recommended Posts

1.2.3.2. Strunctura programelor de tip procedură

In figura urmatoare este prezentat antetul de procedura:

 

 

5AHXbHc.png

Figura 1.2. Structura antetului unui subprogram de tip procedura

Exemplu:

procedure suma(var s:real; x,y:real);
begin
 s:=x+y;
end.

-antetul este: "procedure suma(var s:real; x,y:real);";

-identificatorul (numele procedurii) este suma;

-lista parametrilor formali este: "var s:real; x,y:real;";

-blocul este:

begin
 s:x=+y;
end;
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.