Autor Beitrag
Gokz
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Mi 06.10.04 10:13 
Hallo,

ich beschäftige mich erst seit kurzem mit Delphi und hätte gern gewusst, wie man eine Rechtecksberechnung erstellt.

Danke im vorraus!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 06.10.04 10:18 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure ZeigeRechteckWerte(a:Real;b:Real);
var
  Flaeche, Umfang : Real;
begin
  Flaeche := a * b;
  Showmessage('Fläche: ' + FloatToStr(Flaeche));
  Umfang := 2 * (a + b);
  Showmessage('Umfang: ' + FloatToStr(Flaeche));
end;


Hilft das schon weiter?
Gokz Threadstarter
Hält's aus hier
Beiträge: 2



BeitragVerfasst: Mi 06.10.04 10:23 
jasocul hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
procedure ZeigeRechteckWerte(a:Real;b:Real);
var
  Flaeche, Umfang : Real;
begin
  Flaeche := a * b;
  Showmessage('Fläche: ' + FloatToStr(Flaeche));
  Umfang := 2 * (a + b);
  Showmessage('Umfang: ' + FloatToStr(Flaeche));
end;


Hilft das schon weiter?


genau das wollte ich, vielen dank!
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Mi 06.10.04 10:41 
Glaube ich nicht. Ist nämlich ein Tippfehler drin. Den überlasse ich aber dir :wink:
Die mathematischen Grundkenntnisse waren aber hoffentlich nicht das Problem, oder?