Daryan997

Q5 - mid term

Oct 5th, 2020 (edited)
65
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package q5_mid_term;
  2.  
  3. public class Q5_mid_term {
  4.  
  5. public static void main(String[] args) {
  6. for (int i = 0; i < 9; i++) {
  7. for (int j = 0; j < 5; j++) {
  8. if (i == 0 || j == 0 || j == 4 || i == 4) {
  9. System.out.print("*");
  10. } else {
  11. System.out.print(" ");
  12. }
  13. }
  14. System.out.println("");
  15. }
  16. }
  17. }
  18.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×