Predict the output of the following code:
public class Test {
public static void main(String args[]){
double c;
int a=-9;
int b=2;
c=a-b;
System.out.println(c);
}
}
A
7.0
B
11.0
C
-11.0
D
-7.0
Answers
Answered by
1
Answer:
c ************
Explanation:
c=a-b= -9-2= -11
Answered by
0
Answer: (c) - 11.0
Explanation:
c = a - b
c = -9 -2 = - 11
Similar questions
Accountancy,
1 month ago
English,
1 month ago
Computer Science,
3 months ago
Math,
3 months ago
Math,
9 months ago
Math,
9 months ago
Economy,
9 months ago