Advertisement
veronikaaa86

RectangleOf10x10Stars

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