- 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.

19th Jun 2020, 3:45 AM
TeaserCode
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?
19th Jun 2020, 3:59 AM
Ipang
+ 3
This is incorrect question... 100/120 = 0 (integer division).
19th Jun 2020, 4:13 AM
Sanjay Kamath
Sanjay Kamath - avatar
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.
20th Jun 2020, 3:00 AM
TeaserCode