
i wanna make pyramid in X++ jobs but when i write d code it prints the value in next line line always.....plz tell me how to display values in a single line....here m giving u the code help me as soon as possible
static void pyramid(Args _args)
{
int i,j;
for(i=0;i<5;i++)
{
for(j=i;j<5;j++)
{
print(i);
}
print(" ");
}
pause;
}
*This post is locked for comments
I have the same question (0)static void pyramid(Args _args)
{
int i,j;
str 5 linetoPrint;
for(i=0;i<5;i++)
{
for(j=i;j<5;j++)
{
linetoPrint += int2str(i);
}
print (linetoPrint);
linetoPrint="";
}
pause;
}