Social Sciences, asked by sovi6497, 1 year ago

Arithmetic programs in java with examples

Answers

Answered by shaiksalman580
0
Basic Arithmetic Operators are sub group ofJava Arithmetic Operatorswhich include only addition, subtraction, multiplication and division.Basic Arithmetic Operators In Java With Example Program.Basic AlgebraCODETry it OnlineclassBasicAlgebra{ publicstaticvoid main(String arg[]) { int a =3+4; int b = a *4; int c = b - a; int d = b /2; System.out.println("a = "+ a); System.out.println("b = "+ b); System.out.println("c= "+ c); System.out.println("d = "+ d); }}OUTPUTa = 7b = 28c = 21d = 14
Answered by Anonymous
0
ANSWER IS IN THE IMAGE
Attachments:
Similar questions