Hallo,
ich muss einen Weihnachtsbaum mit einem einzigen Zeichen mit turbo pascal schreiben.Hab hier jetzt schon was:
Program Weihnachtsbaum;
uses crt;
VAR k,i,Anzahl,j : integer;
BEGIN
clrscr;
Anzahl:=10;
k:=1;
i:=1;
Gotoxy (40,5);
FOR k:=1 TO Anzahl DO BEGIN
FOR i:=1 TO 2*k-1 DO BEGIN
GotoXY (40-(Anzahl DIV 2)+i-k,k);
textcolor (green);
write ('x');
END;
END;
FOR k:=1 TO 6 DO
For i:=1 TO 3 DO BEGIN
GotoXY (40-(Anzahl DIV 2)-1,Anzahl+1);
textcolor (brown);
writeln ('xxx');
GotoXY (40-(Anzahl DIV 2)-1,Anzahl+2);
write ('xxx');
END;
GotoXY (35,1);
textcolor (yellow);
write ('*');
GotoXY (12,Anzahl+3); write ('Oh Tannenbaum, oh Tannenbaum wie sch”n sind deine Bl„tter...'); delay (500);
readln;
END.
END.
Mein Problem ist, zum einen,wie mach ich den stamm?Weil das writeln ist ja gemogelt! Und zum andren wie hänge ich da noch "schmuck " drauf ??irgendwas,+ Zeichen oder so...
Sagt nix,ich weiss,doofe Aufgabe ;/
Weihnachtsbaum mit einem Zeichen ?!
Moderatoren: Moderatoren, Redakteure
-
- Beiträge: 19
- Registriert: 27.04.2003 13:40
- Persönliche Nachricht:
Weihnachtsbaum mit einem Zeichen ?!
[img:36c391e6eb]http://miniprofile.xfire.com/bg/bg/type/1/csoul.png[/img:36c391e6eb]
[size=1:36c391e6eb]Mein Baby: Athlon XP 3000+, MSI K7N2 DELTA2 Platinum, 1024 MB RAM Infineon, Leadtek GeForce 6800, Audigy 2 ZS, Logitech Internet Navigator SE + MX510[/size:36c391e6eb]
[size=1:36c391e6eb]Mein Baby: Athlon XP 3000+, MSI K7N2 DELTA2 Platinum, 1024 MB RAM Infineon, Leadtek GeForce 6800, Audigy 2 ZS, Logitech Internet Navigator SE + MX510[/size:36c391e6eb]
