DEV Community

Jamoliddin
Jamoliddin

Posted on

Started C#

C# da consoledan kiritish uchun Console.ReadLine qo'llaniladi

namespace Server
{
    public class Program
    {
        public static void Main(string[] args)
        {


ulong[]?  nums = Console.ReadLine()?.
Split(' ',StringSplitOptions.RemoveEmptyEntries).
Select(ulong.Parse).ToArray();
Console.WriteLine(nums[0] * nums[1]);

        }


    }
}
Enter fullscreen mode Exit fullscreen mode


*** C# da array orqali 1 qatorda ulong typega oid son kiritish va ularni ko'paytirish

Top comments (0)