C# User Input And Your User Input For Possible 2025 Content

Advertisements

Hello everybody,

Happy new year! It’s Michael, and I hope you all had a very merry, very festive holiday season with your loved ones. I’m back from my holiday break and ready to open up the Michael’s Programming Bytes shop for 2025! I can’t wait to share all of the amazing content I have planned for this year.

So, how will I begin my blogging year? I’m going to demonstrate how to perform user input with C#!

C# User Input

Now, how do we perform user input with C#? Here’s a little demonstration:

// Asking user input for today's date
Console.WriteLine("Please enter today's date");
string todaysDate = Console.ReadLine();
Console.WriteLine("Today's date is: " + todaysDate);

Please enter today's date
January 7 2025
Today's date is: January 7 2025

Here we have a simple C# program asking for the user’s input for today’s date. All it took to make this program were three lines of code-one to ask the user to Please enter today's date, one to store the user’s input, and one to print out the user’s input along with the text Today's date is: . Pretty simple stuff right?

  • Yes, I know C# can do date-time formatting, much like other languages. However, I just used a string for the date for simplicity’s sake.

Your (User) Input For Michael’s Programming Bytes

Yes, I chose a demonstration on C# user input for my first 2025 post in part for a clever segue into another thing I want to do on this blog. I realized I’ve never tried to gather user/reader input during this blog’s almost 7-year run, so for the first time ever, I’m going to launch a survey to gather feedback from readers like you about your ideas, thoughts, and honest opinions on my content. I will take a look at the survey to shape my blog for 2025 and beyond.

Anyway, here’s the link to the survey. Feel free to complete it whenever you get a chance! I’m definitely curious as to what you think of my blog’s content run so far (and with 177 posts, there’s a lot of content to go around): https://forms.office.com/Pages/ResponsePage.aspx?id=DQSIkWdsW0yxEjajBLZtrQAAAAAAAAAAAAZ__sEfXLlUMUxENjZIN0IxWDlNODJWN0RKOVdFTlRGRy4u

Thank you for taking the time to fill out the survey! I can’t wait to share more amazing programming content with you all in 2025!

Also, here’s the link to this lesson’s C# script on my GitHub-https://github.com/mfletcher2021/blogcode/blob/main/UserInputTest.cs.

As always, thank you for reading!

Michael