Hello i need a program that reads a number and then prints a square pattern of (#) hash. But each edge needs the same number of hashes
eg
enter a number: 5
#####
#####
#####
#####
#####
this is what i have so far
import console;
print("write a number: ");
int n = readInt();
int nva=0;
String i="#";
while (nva<n){
print(i);
nva=nva + 1;
}
println();