System Posted February 28, 2011 Report Share Posted February 28, 2011 exista functie ptr max si min a 2 nr in pascal? Quote Link to comment Share on other sites More sharing options...
M2G Posted February 28, 2011 Report Share Posted February 28, 2011 Asa:Programs: To find max & min of an array in PascalSau asa? MaxMin Quote Link to comment Share on other sites More sharing options...
totti93 Posted February 28, 2011 Report Share Posted February 28, 2011 In Borland Pascal nu este, dar in Free Pascal gasesti functia in unitul "math"Oricum, il poti scrie tu, iti ia 3 randuri fiecare.LE: ^A raspuns, nu am vazut. Quote Link to comment Share on other sites More sharing options...
pr00f Posted February 28, 2011 Report Share Posted February 28, 2011 Pentru doua numere poti folosi if. Daca a > b atunci | daca a < b atunci . Quote Link to comment Share on other sites More sharing options...
Paul4games Posted February 28, 2011 Report Share Posted February 28, 2011 Pentru doua numere poti folosi if. Daca a > b atunci | daca a < b atunci .este mai bine cu:if a>b then max:=aelse max:=b Quote Link to comment Share on other sites More sharing options...