Friday, May 31, 2013

31
May
Posted in My Programming Skill

Multiplication of Numbers

SOURCE CODE class Multiplication { public static void main(String args[]) { // start of main() method. int a=9, b=12, c;  // initializing a & b of type integer. c = a * b; //Multiplying a & b using "*" operator and storing in c. System.out.println("Multiplication is : "+c);  // printing result. } // end of main() method. } // end of class. OUTPUT Multiplication...
31
May
Posted in My Programming Skill

Subtraction of Numbers

SOURCE CODE class Subtraction { public static void main(String args[]) { // start of main() method. int a=10, b=14, c;  // initializing a & b of type integer. c = a - b; //subtracting b from a using "-" operator and storing in c. System.out.println("Subtraction is : "+c);  // printing result } // end of main() method. } // end of class. OUTPUT Subtraction is : -4 NOTE:-  ...
31
May
Posted in My Programming Skill

Sum Of Two Numbers

SOURCE CODE class addition { public static void main(String args[]) { // start of main() method.     int a=10, b=14, c; // initializing a & b of type integer.     c = a + b; // adding a & b using "+" operator and storing in c.     System.out.println("Addition : "+c);     // printing result ...
31
May
Posted in My Programming Skill

Operators in JAVA

Operators are the thing which operates on variable to produce results. They manipulate both the data and variables. JAVA provides wide variety of operators. Those are as follows:- 1)      Arithmetic Operators:- These operators are used on mathematical expressions. These operators are as follows:- Sr. No. Operator Meaning Sample Program ...

    Translate

    Protected by Copyscape