Triangle Numbers



Triangle

class tr
{
public static void main(String args[])
{
int i,j,s;
s=1;
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
System.out.print(s+++"\t");
System.out.println();
}
}
}