Arithmetic Operators
<?php
$number1 = 9;
$number2 = 4;
echo $number1 - $number2 . "\n";
echo $number1 + $number2 . "\n";	
echo $number1 / $number2 . "\n";
echo $number1 * $number2 . "\n";
echo $number1 % $number2 . "\n";
/* Result
5
13
2.25
36
1
*/
by otar datuadze
2 years ago
PHP
Arithmetic Operators
0
Pro tip: use ```triple backticks around text``` to write in code fences
0
ნიკოლოზ კუპრაშვილი 2 years ago
?> დაამატე
REPLY
Show 1 reply