- 1
Can anybody solve this exercise, in c++?
Write a function that does not accept any parameters, calculates and returns the sum of all two-digit numbers that are divisible by 5! For example: 100.
4 Respostas
+ 3
5! Is 120 (factorial of 5)
How can a two-digit number (10 - 99) be fully divisible by 120?
Or maybe you meant fully divisible by 5?
+ 3
This is incorrect question...
100/120 = 0 (integer division).
0
I give it because I'm learning and need a help. And I still haven't got a solution. I mean numbers between 0 - 100.