PHP Program To Print Sum Of Digits
first of all create two variable in php for sum digits the below code i was create a $a and $b variable
and print using echo statement
code:-
<?php
//sum of two digit
$a=10;
$b=5;
echo "sum of two digit is ".$a+$b;
?>
output:-
sum of two digit is 15
Post a Comment
If you have any doubts, Please let me know
Thanks!