* represents multiplication but why is it written like f*, this makes it look like f has an exponent (in module 6 question no 6) it would have made sense if f*I not f*=I that just complicated things for me. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

* represents multiplication but why is it written like f*, this makes it look like f has an exponent (in module 6 question no 6) it would have made sense if f*I not f*=I that just complicated things for me.

module 6 quiz no 6

18th Dec 2016, 5:07 AM
Aka
Aka - avatar
3 Answers
+ 2
This is shorthand notation and most experienced programmers frequently use it. f*=i; is shorthand notation for f=f*i; It's also available for other operators like +,-,/,% e.g. f/=a+b: is shorthand for f=f/(a+b);
18th Dec 2016, 8:24 AM
Caffeinated Gamer YT
Caffeinated Gamer YT - avatar
0
Well bad for you That way of multiplication (is used in sum, subtraction, division as well) Is assignment operators And you better understand it because is the most common way of doing operations
18th Dec 2016, 6:35 AM
Dago VF
Dago VF - avatar
0
thanx a lot guys, got so much to learn then!
18th Dec 2016, 5:59 PM
Aka
Aka - avatar