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: Difference between revisions

From Groundhog Learning
Updated via bot
 
(No difference)

Latest revision as of 16:09, 21 October 2025

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