how to add two values together and print it out code example
Example 1: how to add two values together and print it out
int x = 5, y = 6, z = 50;
Console.WriteLine(x + y + z);
Example 2: how to add two values together and print it out
int x = 5;
int y = 6;
Console.WriteLine(x + y); // Print the value of x + y
Example 3: how to add two values together and print it out
string firstName = "John ";
string lastName = "Doe";
string fullName = firstName + lastName;
Console.WriteLine(fullName);