12:20 am - Tuesday May 22, 2018

Java Example Program for Multiplication

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044
/*java program for multiplication of a numbers*/
/**
*@author:Candidjava.com
*@Description:To calculate the multiples of two number using muliple operator
*/
public class Mul
{
public static void main(String[] args)
{
int a=12;
int b=20;
int c;
c=a*b;//use this line if find the multiples of a and b
System.out.println("c:"+c);// display the c
}
}


Output:

c:240

Filed in: Sample Programs in java

Comments are closed.