Generating number in Increasing Order Series
Generating number in Increasing Order Series
public class GenerateIncreasingOrder
{
public static void main(String...s)
{
for(int i=1;i<=5;i++)
{
for(int j=1;j<=5;j++)
{
if((i+j)>=6)
System.out.print(j);
else
System.out.print(" ");
}
System.out.print("\n");
}
}
}
Result
Generating number in Increasing Order Series :
5
45
345
2345
12345
Recent Comments