• We Code
  • We Design
  • We Develope
  • We Write
  • We Share

menu

Sunday, August 12, 2012

AIRTHMETIC OPERATORS in JAVA

In java these are the following arithmetic operators



operator             description

.........................................................
+                         addition
-                          subtract
*                         multiplication
/                          division
%                       modulus/reminder
.............................................................


arithmetic operators in java takes two operand and perform arithmetic operation like addition subtraction .

//airthmeticoperatortest.java



public class ArithmeticOperatorTest

{
  public static void main ( String args[]) throws exception
{
int=10,j=20;
int k=30;
System.out.println("i+j ="+k);
int l=i-j;
system.out.println("i-j="+l);
int m=i*j;
System.out.println("i*j="+m);
}
}



0 comments:

Post a Comment

...