public static void Print20Stars ( int pos1, int pos2)
for (int counter = 1 ; counter <= 20 ; counter++)
PrintRectangle (pos1, pos2);
public static void PrintStars (int pos1 )
for (int counter = 1 ; counter <= pos1 ; counter++)
public static void PrintRectangle (int width, int height )
for (int counter = 1 ; counter <= height ; counter++)
public static int GetPositiveNumber ( )
Console.WriteLine ("please enter positive number");
pos = int.Parse(Console.ReadLine());
public static void Main (string[] args) {
int pos1 = GetPositiveNumber();
int pos2 = GetPositiveNumber();
Print20Stars(pos1, pos2);