Create a program in C# that requests a number (x) and displays 10*x.
Must be repeated until the user enters 0.
public class UsingDoWhile
public static void Main(string args)
x = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(x * 10);
while (x != 0);
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.