+ 1
Doing math operators
Stuck on this portion of the course a=8 A/=3 Puts 4%a What’s the output is the question Outside of the answer what’s the longform doing the math?? Thanks for your help
4 Antworten
+ 4
because / divide numbers like integers(whole numbers) and then 8/3 = 2 and then % gives remainder after divison like this before so 4 / 2 = 2 and remainder is 0
+ 5
8/3=2
4%2=0
output is 0
+ 1
Thanks! Thats worked how is “0” though 2 is remainder how is “% “ used
0
Thanks can seem complex ..help appreciated. Clears it up