Computer Science, asked by magendaran3579, 11 months ago

Write a program in JAVA to display the following series using for loop:
1 11 111 1111.........10 terms

Answers

Answered by pranayshende1
2

Answer:

class A

{

public void main (String [] args)

{

int f=1, n=0;

for (; n<10; n++)

{

System.out.println(f);

f=f*10+1;

}

}

}

Similar questions