feat(PI114): add askUserSentence method for user input

Add a new static method that prompts the user to enter a sentence to decipher, reads the input from console, and displays it back. This method will be used to gather user input for the morse code translation feature.
This commit is contained in:
nocode committed 2026-09-07 08:29:54 +02:00
1 parent 489ba98991
commit ddb515f3e5
1 file changed
+7
+7
View File
@@ -90,4 +90,11 @@ class PI114
letterToMorse.Add("9", "----.");
letterToMorse.Add(" ", "/");
}
static void askUserSentence()
{
Console.Write("Entrez votre phrase à déchiffrer : ");
string userText = Console.ReadLine();
Console.WriteLine();
Console.WriteLine(userText);
}
}