Showing posts with label METHOD WITH RETURN TYPE AND WITH ARGUMENT. Show all posts
Showing posts with label METHOD WITH RETURN TYPE AND WITH ARGUMENT. Show all posts

Sunday, November 8, 2009

METHOD WITH RETURN TYPE AND WITH ARGUMENT

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication13
{

class obj
{
public int show(int a,int b)
{

int c = a + b;
return c;
}
public static void Main (String []args)
{
obj ob=new obj();
int d=ob.show(5,10);
Console.WriteLine("the sum is " + d);
}
}

}