Advertisement
sandunfx

Untitled

Jul 17th, 2020
1,085
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.65 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace ConsoleApp6
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.  
  14.             string input = Console.ReadLine();
  15.  
  16.             string[] list1 = input.Split('|')[0].Trim().Split(' ');
  17.             string[] list2 = input.Split('|')[1].Trim().Split(' ');
  18.  
  19.             for (int i = 0; i < 3; i++)
  20.             {
  21.                 int temp = Convert.ToInt32(list1[i]) * Convert.ToInt32(list2[i]);
  22.                 Console.Write($"{temp} ");
  23.             }
  24.  
  25.             Console.Read();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement