how to do this pattern using UiPath
Hi,
It’s similar with the following topic.
int c=1;
int i=1;
while( i<=15)
{
for (int j=5; j>0;j--)
{
if (j<=c)
{
s+=i.ToString()+" ";
i++;
}else{
s+="* ";
}
}
s+=Environment.NewLine;
c++;
}
note : C# code
Sequence.xaml (5.1 KB)
Regards,
Give it a try this.
int c=1;
int i=1;
string ts="";
while( i<=15)
{
ts="";
for (int j=0; j<5; j++)
{
if (j<c)
{
ts =i.ToString()+" "+ts;
i++;
}else{
ts="* "+ts;
}
}
ts+=Environment.NewLine;
s+=ts;
c++;
}