--------------------------
/*program to print number pattern square box by while loop
54321
54321
54321
54321
54321
*/
class npat5w
{
public static void main(String a[])
{
int n,i,j;
i=1;
n=Integer.parseInt(a[0]);
while(i<=n)
{j=n;
while(j>=1)
{
System.out.print(j);
j--;
}
System.out.print("\n");
i++;
}
}
}
0 comments:
Post a Comment