- Dec 3, 2002
- 3,763
- 0
- 0
Actually, this probably isn't even C++ specific.
Take any input (float, int, etc) and multiply it by 5, without using the * operator in two steps.
My first thought before he added the "in two steps" bit was just add the input number together five times =). Not the right answer though.
Take any input (float, int, etc) and multiply it by 5, without using the * operator in two steps.
My first thought before he added the "in two steps" bit was just add the input number together five times =). Not the right answer though.