Display using nested loop
1
11
111
1111
11111
Answers
Answered by
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
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
English,
8 months ago
English,
8 months ago
Geography,
8 months ago
Social Sciences,
1 year ago
Math,
1 year ago
Biology,
1 year ago
Accountancy,
1 year ago