1:35 pm - Wednesday October 17, 2018

Java Program for different arithmetic operations

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

/**

*@author:CandidJava.com

*@description :This program explain how to perform different kinds of arithmetic operation on the given numbers

*/

class Arithematic{

public static void main(String args[]){

int i,j,k;

j=9;

k=2;

//adding two numbers and stores in the variable i

i=j+k;

System.out.println(“Sum of two numbers” + i);

}

}

output

D:\ Candidjava>Code >javac Arithematic.java

D:\ Candidjava>Code >java Arithematic

Sum of two numbers  11

 

Filed in: Z-A All Java Codes

No comments yet.

Leave a Reply