Q. What will be the output of the following code?
<?php
echo 10 % 3;
?>

Code:
echo 10 % 3;
  • (A) 1
  • (B) 3
  • (C) 0
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (A) 1
Explanation: The % operator gives the remainder of division. 10 divided by 3 leaves remainder 1.
Explanation by: Rati Dubey
The % operator gives the remainder of division. 10 divided by 3 leaves remainder 1.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
103
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
92%
Success Rate