Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- public class Square
- {
- public static void main(String[] args)
- {
- Scanner scan = new Scanner(System.in);
- int size = Integer.parseInt(scan.nextLine());
- for (int i = 0; i < size; i++)
- {
- for (int j = 0; j < size; j++) {
- System.out.print(" * ");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement