0

How come 66 in int sum2?

int sum1=50+10; int sum2=sum1+66; intsum3=sum2+sum2;

1st Sep 2017, 7:15 PM
Chetan Jhatiwal
2 ответов
+ 7
It's just an example from the course to show how addition works in Java.
1st Sep 2017, 7:33 PM
Tashi N
Tashi N - avatar
+ 1
sum1 = 60 sum2 = 60 + 66 sum3 = 126 + 126 output of sum3 = 252
2nd Sep 2017, 2:26 AM
D_Stark
D_Stark - avatar