Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Help at making a tree trunk
Hello to all
I am a beginner is pascal and i am trying to make a tree trunk that grows acording to the rest of the tree.
I already made the tree itself (here it is):
var num_lines, line:Integer;
procedure printline (num_esp, num_ast:Integer);
for counter:=1 to num_esp do
for counter:=1 to num_ast do
begin (*Main program*)
writeln ('Height of the tree= ');
for line:=1 to num_lines do
But now i am stuck and cant figure out how to make the tree trunk
I <------This part i want it to grow as the tree gets bigger(this part needs to be added at the bottom of the tree).
Help would be much appreciated
ps:I am usig Dev-Pascal 1.9.2.
0 · ·