Tuesday, 2 April 2019

Program to multiply two number in Java

class mul_num
{
public int mul (int a, int b)
{
return (a*b);
}
}
class mulnum
{
public static void main (String args[])
{
int a,b;
a=10;
b=23;
mul_num mulobj=new mul_num();
System.out.println("multiplication="+mulobj.mul(a,b));
}
}


OUTPUT ;

No comments:

Post a Comment

Featured post

Kalgudi Interview Round!!

Those who cleared the second round of kalgudi got an email from exceller to complete their Kalgudi Interview Round. So here we will discuss ...