Console.WriteLine("Write firts number:");
       string a = Console.ReadLine();
       
Console.WriteLine("Write second number:");
        string b = Console.ReadLine();
        
Console.WriteLine("your first number:");
         Console.WriteLine(a);
         
Console.WriteLine("your first number:");
         Console.WriteLine(b);

Խնդիր

    int mar = Convert.ToInt32(Console.ReadLine());

    int[] a = {1, 2, 3, 4, 5, 65};

    int sum = 0;

    for (int i = 0; i <= 5; i++) {
        sum += a[i];
        if (mar ==  sum){
            Console.WriteLine ("havasar en");
        }
    }

}     
 string dog = Console.ReadLine();
       string [] arr = {"dog", "cat", "cow"};
       
      for (int i = 0; i < 3; i++) {
        if(dog == arr[i]) {
            Console.WriteLine(dog);
        }
      }