Computer Science, asked by gitap1845, 17 days ago

write a program to display 1, 22,333,4444,55555​

Answers

Answered by utkarshtripathi0077
0

Answer:

import java.util.Scanner;

public class Print_Series7 {

public static void main(String[]arg ) {

Scanner sc=new Scanner(System.in);

int n,out,in;

System.out.printf("Enter the range of number(Limit):");

n=sc.nextInt();

for(out=1;out<=n;out++)

{

for(in=1;in<=out;in++)

{

System.out.print(out);

}

System.out.print(" ");

}

sc.close();

}

}

Similar questions