Write a program in Java using loop to print the following patten :
/n12345 /n.2.4 /n123 /n.2 /n1
The program will be dynamic not static. Take inp