Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.Scanner;
- /**
- * Created by Lenovo on 7.3.2017 г..
- */
- public class zada4a6 {
- public static void main(String[] args) {
- Scanner console = new Scanner(System.in);
- int n = Integer.parseInt(console.nextLine());
- for (int J = 0; j <n; i++) {
- System.out.println("*");
- }
- (System.out.println();
- for (int i = 0; i <n-2 ; i++) {
- for (int j = 0; j < n; j++) {
- if (j==0||j==n-1) {
- System.out.print("*");
- else{
- System.out.print("");
- }
- }
- System.out.println();
- }
- for (int j = 0; j < ; j++) {
- System.out.println("*");
- }
- System.out.println();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement