+ 19
Plz someone help me for the answer of primitive operators 2nd question, from basic concepts chapter....
I want to fill in the blanks so dont confuse međ
5 Answers
+ 18
thank u both...
+ 4
In the second question of primitive operators they are declaring two variables. I will just give you an example...
cass example {
public static void main (String [] args) {
// Making three variables
int x, you, sum;
// setting var value
x = 3;
y = 2;
sum = x + y;
// printing to console
System.out.println (sum);
//alternatives would be
System.out.println (x+y);
System.out.println(3+2);
}
}
All that is happening is basic math functions where they add two different variables and store that value into a 3rs variable and output the results. Knowing this and how it works you should be able to get the answer.
+ 4
x = 3;
y = 2;
sum = x + y;
System.out.println (result);
+ 2
+y. result
+ 2
type "result" without the quotes. result is used in the line above it, so you want to print out the result.