martinvalchev

Rectangle Of 10 x 10 Stars

Nov 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1.  
  2. public class RectangleOf10x10Stars {
  3.     public static void main(String[] args) {
  4.  
  5.         for (int row = 0; row < 10; row++) {
  6.             for (int col = 0; col < 10; col++) {
  7.                 System.out.print("*");
  8.             }
  9.             System.out.println();
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment