Few code standards. Remove composer vendor folder
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
//12857 multiplied by 7 gives 90099, and the sum of the digits of 90099 is indeed 27, not 44. Keep trying!
|
||||
|
||||
function sumDigits($number) {
|
||||
function sumDigits(int $number): int {
|
||||
$sum = 0;
|
||||
// converting number to string to access digits easily
|
||||
$numberStr = (string)$number;
|
||||
|
Reference in New Issue
Block a user