0
Cout<<8+2*3%7;. //Output =14
Explanation on output (how to solve)
5 odpowiedzi
+ 20
8+2*3%7
= 8+ 6%7
= 8+ 6
= 14
Explanation: + has less preference than the other 2 operations. * and % gets equal preference, So, between * and %, the order of operations must be left associative. So multiplication works first as it is in left.
If you divide any small number by a large number, the remainder should be the small number itself.
+ 16
If you divide 6 by 7, then the quotient will be 0
Since 7*0 = 0,
so remainder should be 6-0=6
Welcome 😊
+ 1
% gives the remainder hence 6%7 comes out to be 6. ie. [ 7 (0)+6]
0
First of all thanks
0
yeah but here I'm facing the problem how 6℅7 is ==6 shouldn't it be 4?