Search This Blog

Sunday, December 12, 2010

PARAMETERISED FUNCTION - sum

class aman
{
    public void sum(int a, int b)//parameterised function
    {
        float c=a+b;
        System.out.println("The sum of two numbers is = " +c);
    }
}

No comments:

Post a Comment