JavaScript
let a=10,b=5;
console.log(a+b,a-b,a*b,a/b,a%b);Arithmetic operators: + - * / %
Arithmetic operators are symbols used for mathematical calculations.
Calculator buttons perform actions. Operators perform actions in code.
Do not confuse / with fraction symbol or % with percentage in basic programming.
let a=10,b=5;
console.log(a+b,a-b,a*b,a/b,a%b);int a=10,b=5;
cout<<a+b<<endl<<a-b<<endl<<a*b<<endl<<a/b<<endl<<a%b;a=10
b=5
print(a+b,a-b,a*b,a/b,a%b)<?php
$a=10;$b=5;
echo $a+$b;
echo $a-$b;
echo $a*$b;
echo $a/$b;
echo $a%$b;
?>+ add, - subtract, * multiply, / divide, % remainder.