PHP/Language Basics/Modulus

Материал из Web эксперт
Перейти к: навигация, поиск

Check the modulus of the two values and print the result

   <source lang="html4strict">

<? $a = 85; $b = 24;

echo "

Original value of \$a is $a and \$b is $b

";

$c = $a % $b;

echo "

The modulus of \$a and \$b is $c

";

?>

      </source>