I'm learning C# coming C and I'm having probelms with this basic code getting the error
"an object reference is required from a non-static field, method or property 'ConsoleApplication1.Program.Addtion(int, int)'"
on the line 14
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int ia = 10;
int ja = 20;
int answer = Addtion(ia, ja);
if (answer == 0)
Console.WriteLine("Number Over or Equal to 100");
else
Console.WriteLine(answer);
}
public int Addtion(int number1, int number2)
{
int result = number1 + number2;
if (result >= 100)
{
return result;
}
return 0;
}
}
}
Please Help :(