Computer Science, asked by sultaniakaushal, 1 year ago

Display using nested loop
1
11
111
1111
11111

Answers

Answered by Anonymous
1

Answer:

import java.util.Scanner.;

public class Nested

{

public static void main (String args [])

{

Scanner sc = new Scanner (System.in);

int i,j;

for (i=1;i <=5;i++)

{

for (j=1;j <=i;j++)

{

System.out.print ( "1"+ "\t");

}

System.out.println ();

}

}

Answered by Anonymous
0

Explanation:

 nested loop join is a naive algorithm that joins two sets by using two nested loops. Join operations are important for database management

Similar questions