Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Print a Variable

From Groundhog Learning
Revision as of 16:09, 21 October 2025 by Groundhog (talk | contribs) (Updated via bot)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Showing the value of a variable on the console.



Print a Variable in C#

Print a Variable in C# using Concatenation

💻 C#

int score = 0;
Console.WriteLine("Score: " + score);

🖨️ Console

Score: 0

Related Concepts