Computer Science, asked by kumarkrahul80, 3 months ago

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); 
}
}



7.0



11.0



-11.0



-7.0

Answers

Answered by atulkumargpt
1

Answer:

c ************

Explanation:

c=a-b= -9-2= -11

Answered by pragyakirti12345
0

Answer: (c) - 11.0

Explanation:

c = a - b

c = -9 -2 = - 11

Similar questions