
Day -1 of Learning C#
Today I officially started my C# journey — not with advanced topics, but with the absolute basics. Before building complex applications, I wanted to understand how the language communicates, stores data, and handles input. First up was console printing. I learned the difference between Console.Write() and Console.WriteLine(). One keeps the cursor on the same line, the other moves to the next. Simple, but important for formatting output. Then I explored Console.ReadLine() to take user input. It was cool to see how quickly a program becomes interactive just by accepting a name and printing it back. Next were comments — both single-line (//) and multi-line (/* */). Clean code matters, even from day one. I also covered variables and constants. Variables store changeable data, while constants remain fixed. I practiced using data types like int, double, and decimal, learning that decimals are better for precise values like money. The var keyword was interesting too. It lets the compiler figu
Continue reading on Dev.to
Opens in a new tab



