Untitled

mail@pastecode.io avatar
unknown
java
a month ago
616 B
0
Indexable
Never
import java.util.Scanner;
public class test{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int num=sc.nextInt();
    for(int i=1;i<=num;i++){
      for(int j=1;j<=num;j++){
        System.out.print("*");
      }
      System.out.println();
    }
  }
}






import java.util.Scanner;
public class test{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int num=sc.nextInt();
    for(int i=1;i<=num;i++){
      for(int j=1;j<=num;j++){
        System.out.print("*");
      }
      System.out.println();
    }
  }
}
Leave a Comment