Hello friends,
I recently started learning C# code. I have write following code in c#, but it doesn't work. In this code I unable to call class into main method. I don't know what is the problem. I don't know why I unable to call class into main method in c# code. Please help me. For your information I have written following code for you.
Code:
using System;
namespace AddMinusDivideMultiply
{
class ProgramEg
{
public static int x, y;
public static void Main()
{
Console.Write("Please Enter 1st Number :");
string temps = Console.ReadLine();
x = Int32.Parse(temps);
Console.Write("Please Enter 2nd Number :");
temps = Console.ReadLine();
j = Int32.Parse(temps);
Minuz.minus();
}
}
class Terms
{
public static void Add()
{
int adds;
adds = Programeg.x+ Programeg.y;
Console.WriteLine(" First and The Second Number is {0}", add);
}
Bookmarks