Write a program in C# that asks for a number (x) and a amount (y). Show that number as many times as the amount (y).
public class NumberRepeated
public static void Main()
int x = Convert.ToInt32(Console.ReadLine());
int y = Convert.ToInt32(Console.ReadLine());
for (int i = 0; i < y; i++)
Practice C# anywhere with the free app for Android devices.
Learn C# at your own pace, the exercises are ordered by difficulty.
Own and third party cookies to improve our services. If you go on surfing, we will consider you accepting its use.