Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1.  
  2.  
  3. import java.util.Scanner;
  4.  
  5. public class app2 {
  6.  
  7. public static void main(String[] args) {
  8. Scanner scan = new Scanner(System.in);
  9. int n = scan.nextInt();
  10. for(int i = 0; i < n; i++) {
  11. for(int i2 = 0; i2 < n; i2++) {
  12. System.out.print(" * ");
  13.  
  14. }
  15. System.out.println();
  16. }
  17. }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement