Few code standards. Remove composer vendor folder

This commit is contained in:
2025-04-04 12:26:47 +00:00
parent ed83a3afc3
commit 4dd1683e1a
24 changed files with 69 additions and 1152 deletions

View File

@ -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;