C# How To Add Two Numbers
Add Two Numbers
Learn how to add two numbers in C#:
Example
int x = 5;
int y = 6;
int sum = x + y;
Console.WriteLine(sum); // Print the sum of x + y
Learn how to add two numbers in C#:
int x = 5;
int y = 6;
int sum = x + y;
Console.WriteLine(sum); // Print the sum of x + y
Your message has been sent to W3Schools.