NUMBER PATTERN IN JAVA.
12345
2345
345
45
5
***********************************
public class Pattern_1
{
public static void main (String args[]) {
int i,j;
for (i = 1; i < = 5; i ++)
{
for (j = i; j <= 5; j ++)
{
System.out.print (i);
}
System.out.println ();
}
}
}
*******************************
By- BLUEJ HUB
0 Comments