Computer Science, asked by mrx678, 11 months ago

Write a program in Java and print the series 1,11,111,1111,11111........n terms​

Answers

Answered by omshankar34
2

Answer:

public class serious

{

public static void main ()

{

int i, j,a=1,n;

System. out. print("enter number ");

for(i=1,i<=n,i++)

{

for(j=1,j<=I, j++)

{

System. out. print(a);

}

System. out. println();

}

}

}

Similar questions