Answers for "how to add two values together and print it out"

0

how to add two values together and print it out

string firstName = "John ";
string lastName = "Doe";
string fullName = firstName + lastName;
Console.WriteLine(fullName);
Posted by: Guest on May-30-2021
0

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
Posted by: Guest on May-30-2021
0

how to add two values together and print it out

int x = 5, y = 6, z = 50;
Console.WriteLine(x + y + z);
Posted by: Guest on May-30-2021

Code answers related to "how to add two values together and print it out"

Browse Popular Code Answers by Language