Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

function in c# to do addition

int a = 80;
int b = 20;
int addition(int number1, int number2)
{
	int result = number1 + number2;
	return result;
}
Console.WriteLine(addition( a,  b));
 
PREVIOUS NEXT
Tagged: #function #addition
ADD COMMENT
Topic
Name
1+1 =