0
Why do keep getting 3 as my answer?
2 Respostas
+ 4
a=3;
b=4;
c=a/b*b;
3/4 = 0
0 * 4 = 0
-> c = 0
d=b/a*a;
4/3 = 1
1* 3 = 3
-> d = 3
e=a/b*b;
3/4 = 0
0*4 = 0
-> e = 0
c+d+e;
0+3+0=3
-> output: 3
+ 1
because
a = 3
b = 4
is not changing and according to code the value generated is 3 using a and b.