14
1
using System;
2
using System.Text.RegularExpressions;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
string phrase = "AB4000-01-433593-1-1";
9
string[] words = phrase.Split('-');
10
System.Console.WriteLine(words[0]);
11
System.Console.WriteLine(words[1]);
12
System.Console.WriteLine(words[0] + "-" + (words[1]));
13
}
14
}
Cached Result
Detta är din nuvarande spelplan:
~~~~~~
~~~~~~
~~~~~~
~~~~~~
Vart vill du placera ditt första skepp?
Ange Y-koordinat(0-3)
>
~~~~~~
~~~~~~
~~~~~~
~~~~~~
Vart vill du placera ditt första skepp?
Ange Y-koordinat(0-3)