Answer to Question #272347 in C# for Ann

Question #272347

Make a function that accepts 2 numbers. It will then print a X number of row of *, and Y number of column of *, based on the numbers we input.


1
Expert's answer
2021-11-27T11:34:49-0500
class Program
    {
        static void Main(string[] args)
        {
            Print(6, 5);
            Console.ReadLine();
        }




        public static void Print(int x, int y)
        {
            for (int i = 0; i < x; i++)
                Console.WriteLine(new string('*', y));
        }
    }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS