Jump to content

[PASCAL] Suma a doua numere


TEM
 Share

Recommended Posts

Salut, astazi o sa va prezint si voua o metoda de a calcula suma a 2 numere in Pascal.

 

 

 
Program suma;
     var a,b,S: integer;
     Begin
     writeln ('Primul numar:');Read(A);
     writeln ('Numarul doi:');Read(B)
                S:=A+B;
                writeln('S=' , S);
Readln;
end.
Edited by Cdorsu
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.