Adding numbers in C Sharp

c sharperrorslessons

Written by:

Reading Time: 1 minute

#DidYouKnow

int num1 = 110;
int num2 = 220;
Console.WriteLine(“Sum = ” + sum_of_numbers);

And

Console.WriteLine(“Sum = ” + num1+num2);

Give you entirely different results !

#CSharp

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll Up