write a program using functios to print a right angled equilateral triangle in the series of 1, 6, 21, 45,...
Attachments:
![](https://hi-static.z-dn.net/files/dc7/3b2c40ade5b63782ee2266cb555cb51f.jpg)
Answers
Answered by
0
Answer:
print triangle(20)
function triangle(num)
ctr = 1
b = 0
while ctr < num
b = b + 1
for a = 1 to b
print "*";
ctr = ctr + 1
next a
end while
end function
Explanation:
This function is written in basic 256 and prints "*" characters
Similar questions