More actions
Updated via bot |
(No difference)
|
Latest revision as of 16:06, 21 October 2025
Assigning a value to a variable means putting data into it so the program can use or change it later.
Assign a Value to a Variable in C#
💻 csharp
int score = 0; // Declare integer variable score with value 0. score = 10; // Assign (store) the value 10. Score has the value 10.
Related Concepts
- Uses: Assignment Operator
- Uses: Variable