In the following java code, the expected value is 78 but it returns a value 59. What modifications do I need to do to get the expected result?
public class SampleOne {
public static void main(String[] args) {
int ans=42+45-48-5-15+20*2;
System.out.println(" Ans="+ans);
}
}
int ans = 78;
– Elliott Frisch Jul 10 '19 at 3:42