61
Subtracting Two Numbers
There are three methods to subtract two numbers:
- Subtraction in simple code in PHP
- Subtraction in form in PHP
- Subtraction without using arithmetic operator (+).
Subtraction in Simple Code
Subtraction of two numbers 30 and 15 is shown.
Example:
Output:
Subtraction in Form
By inserting values in the form two numbers can be subtracted.
Example:
Output:
Subtraction in Form without (-) Operator
By inserting values in the form two numbers can be subtracted but without using (-) operator.
Example:
Output:
Next TopicArea of Triangle