English, asked by Anonymous, 7 months ago

Write a program to demonstrate the use of addition operator??

plz guys answer this question....​

Answers

Answered by rapanzel
4

please mark me as brainly.......... ♥️

Attachments:
Answered by CopyThat
4

Program :-   [JAVA]

public class AdditionOperator

{

public static void main (String args [ ] )

{

int x = 10 , y = 9 , z = 5;

System.out.println(''5+7 evaluates to '' + (5 + 7) );

System.out.println(''z+12 evaluates to '' + (z + 12) );

System.out.println(''x+y evaluates to '' + (x + y) );

}

}

Output :-

5+7 evaluates to 12

z+12 evaluates to 17

x+y evaluates to 19

Learn more :-

https://brainly.in/question/25020735

Write a program in Java to demonstrate the use of modulus operator.

Similar questions