Hi Expert
I have been trying to create a triangle in this sequence:
1
21
321
4321
54321
(without the gaps in between )
even though my syntax is correct, I have been going through logical errors with non-terminating loops.
this is the program which I'm trying to fix:
for(i=1;i>=1;i++)
{
for(j=i;j<=i;j=j-1)
{
System.out.print(j);
}
System.out.println();
}
help would really be appreciated for this.
Thanks in advance!
AVADHESH PATEL
10-May-2013