Skip to main content
January 31, 2023
Question

How to print Star pattern

  • January 31, 2023
  • 2 replies
  • 4 views

Hello All,

 how to print this pattern

*

* *

* * *

* * * *

* * * * *

    2 replies

    stefanhelzle0001
    Brainy
    January 31, 2023

    What is your use case? Is this a test? I suggest to study the list of Appian functions here https://docs.appian.com/suite/help/22.4/Appian_Functions.html

    Below some code:

    a!forEach(
      items: enumerate(5),
      expression: rept("*", fv!index)
    )

    harshitb6843
    January 31, 2023

    There are already a lot of similar threads about this topic. From next time, please try to search in the existing discussions. You might find something more useful

    a!forEach(
      items: enumerate(5),
      expression: joinarray(repeat(fv!index,"*"),"")&char(10)
    )