Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package q5_mid_term;
- public class Q5_mid_term {
- public static void main(String[] args) {
- for (int i = 0; i < 9; i++) {
- for (int j = 0; j < 5; j++) {
- if (i == 0 || j == 0 || j == 4 || i == 4) {
- System.out.print("*");
- } else {
- System.out.print(" ");
- }
- }
- System.out.println("");
- }
- }
- }
Add Comment
Please, Sign In to add comment