Skip to main content
Commonmark migration
Source Link

#PHP, 50 bytes

PHP, 50 bytes

while($c++<8)$s+=$argv[$c]*($c&1?3:1);echo$s%10<1; 

Run with -nr, provide digits as separate command line arguments or try it online.

#PHP, 50 bytes

while($c++<8)$s+=$argv[$c]*($c&1?3:1);echo$s%10<1; 

Run with -nr, provide digits as separate command line arguments or try it online.

PHP, 50 bytes

while($c++<8)$s+=$argv[$c]*($c&1?3:1);echo$s%10<1; 

Run with -nr, provide digits as separate command line arguments or try it online.

Source Link
Titus
  • 14.9k
  • 1
  • 25
  • 41

#PHP, 50 bytes

while($c++<8)$s+=$argv[$c]*($c&1?3:1);echo$s%10<1; 

Run with -nr, provide digits as separate command line arguments or try it online.