Thema: Delphi maximum von 3 zahlen

Einzelnen Beitrag anzeigen

Clobber the mob

Registriert seit: 28. Jan 2007
11 Beiträge
 
#5

Re: maximum von 3 zahlen

  Alt 18. Sep 2007, 23:19
mhhh naja möglich wäre das auch durch mehrere if abfragen

Delphi-Quellcode:
 
if (a > b) and (a > c) then Edit2.Text := IntToStr(a);
if (b > a) and (b > c) then Edit2.Text := IntToStr(b)
else then Edit2.Text := IntToStr(c)
;
hoffe mal das das so stimmt.
  Mit Zitat antworten Zitat