static void Main(String[] args) { nw X; X = new nw(); X.A = 20; X.B = 20; X.C = X.A + X.B; Console.WriteLine(X.C); maths R; R = new maths(); // R.message(); opppp opt; opt = new opppp(); opt.message(); opt.Add(6, 7); opt.Salslip(2000); opt.Salslip(1000); Console.Read(); }
public ActionResult Index(maths ma) { int first = ma.x; int sec = ma.y; int r = first + sec; ViewBag.result = r; return(View()); }
static void Main(string[] args) { maths m = new maths(add); m += substract; m += multi; m += div; m.Invoke(70, 54); }