class aman
{
public void sum() //simple function
{
int a=10;
int b=100;
int c=a+b;
System.out.println("The sum of two numbers is = " +c);
}
public void prod()
{
int m = 1987;
int n = 4;
int p = m*n;
System.out.println("the product of 2 numbers = " +p);
}
}
No comments:
Post a Comment