3:12 pm - Thursday November 15, 2018

Java Example Program for Division

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 Division  of a number*/
/**
*@author:Candidjava.com
*@Description:To calculate the Division of two number using Division operator
*/
public class Div
{
public static void main(String[] args)
{
int a=20;
int b=10;
int c=a/b;//use this line if find the Division of a and b
System.out.println("c:"+c);// display the c
}
}

Output:
c:2

Filed in: Sample Programs in java

Comments are closed.