In C a Create a class named Numbers whose Main method holds
In C# - a. Create a class named Numbers whose Main() method holds two integer variables. Assign values to the variables. Within the class, create two methods, Sum () and Difference (), that compute the sum of and difference between the values of the two variables, respectively. Each method should perform the computation and display the results. In turn, call each of the two methods from Main(), passing the values of the two integer variables. Save the program as Numbers.cs.
b. Add a method named Product () to the Numbers class. This method should compute the multiplication product of two integers, but not display the answer. Instead, it should return the answer to the calling Main() method, which displays the answer. Save the program as Numbers2.cs.
Solution
 // Numbers.cs
 using System;
public class Program
 {
         public static void Main()
         {
             double firstNumber = 5;
             double secondNumber = 6;
             Sum(firstNumber, secondNumber);
             Difference(firstNumber, secondNumber);
}
        private static void Sum(double firstNumber, double secondNumber)
         {
             Console.WriteLine(String.Format(\"The sum of {0} and {1} is {2}\", firstNumber, secondNumber, (firstNumber+secondNumber)));
         }
        private static void Difference(double firstNumber, double secondNumber)
         {
             Console.WriteLine(String.Format(\"The difference of {0} and {1} is {2}\", firstNumber, secondNumber, (secondNumber- firstNumber)));
        }
 }
/*
 output:
 The sum of 5 and 6 is 11
 The difference of 5 and 6 is 1
 */
 // Numbers2.cs
 using System;
public class Program
 {
         public static void Main()
         {
             double firstNumber = 5;
             double secondNumber = 6;
             Sum(firstNumber, secondNumber);
             Difference(firstNumber, secondNumber);
           
             Console.WriteLine(String.Format(\"The Product of {0} and {1} is {2}\", firstNumber, secondNumber, Product(firstNumber,secondNumber)));
}
        private static void Sum(double firstNumber, double secondNumber)
         {
             Console.WriteLine(String.Format(\"The sum of {0} and {1} is {2}\", firstNumber, secondNumber, (firstNumber+secondNumber)));
         }
        private static void Difference(double firstNumber, double secondNumber)
         {
             Console.WriteLine(String.Format(\"The difference of {0} and {1} is {2}\", firstNumber, secondNumber, (secondNumber- firstNumber)));
        }
       
         private static double Product(double firstNumber, double secondNumber)
         {
             return firstNumber*secondNumber;
         }
 }
/*
 output:
 The sum of 5 and 6 is 11
 The difference of 5 and 6 is 1
 The Product of 5 and 6 is 30
 */


