From ddb515f3e521a2af5dccf0db0f62af61bd609b45 Mon Sep 17 00:00:00 2001 From: fkDeath Date: Mon, 7 Sep 2026 08:29:54 +0200 Subject: [PATCH] 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. --- Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Program.cs b/Program.cs index 602eb00..a57826d 100644 --- a/Program.cs +++ b/Program.cs @@ -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); + } } \ No newline at end of file