Write a program to find quotient and remainder in php language
ADVERTISEMENTS
Write a program to find quotient and remainder in php language. There are you will learn how to find quotient and remainder in php language.
Take an example to find these things through a php program:
<?php
// Write a program to find
// quotient and remainder in PHP language
$dn = 44;
$dr = 25;
// Computes the quotient
$qu = $dn / $dr;
// Computes the remainder
$rem = $dn % $dr;
echo "The Quotient is " . $qu . "\n";
echo "The Remainder is " . $rem;
?>
Output:
The Quotient is 1.76
The Remainder is 19
Tags:
# how to find the remainder in php language without using modulus
# write a php program to find the size of int, float, double, and char
# write a program to find the division of two numbers in php