No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
â•”â•â•—â•”â•â•—──╔╗──╔â•â•â•â•—─────╔â•â•—╔╗ â•‘â•‘â•šâ•â•‘║──║║──║╔â•â•—║─────║╔â•â•‘â•‘ ║╔╗╔╗╠â•â•â•£â•šâ•â•—â•‘â•šâ•â•â• â•â•¦â•â•â•¦â•â•šâ•¦â•£â•‘â•”â•â•â•—…
import java.io.*; class pattern { public static void main(String args[]) throws IOException { int n; BufferedReader br = new BufferedReader(InputStreamReader(System.in())); System.out.println("Please Enter Your Pattern Length:- "); n = Integer.parseInt(br.readLine()); while(n>2) { for(int i=0;i<=n;i++) { if((i==1)||(i==n)) { for(int k=0;k<=n;k++){ System.out.print("*"); System.out.println(); } } else { int o = n-2; System.out.print("*"); for(int … |