int a=5; int b=6;for(int I=0;i 4
public int Add(int a,int b) {return (a-(-b); }
Sum - The method can be used on objects that implement IEnumerable with a type of decimal, double, int or long. using LINQ:public void SumNum() {int[] array1 = {1,2}; int sum = array1.Sum();}
result = item1 | item2; //for integer types
by using operator overloading