# Answer to Question #38082 in AJAX | JavaScript | HTML | PHP for nishtha ahuja

Question #38082

write a program to find the sum,difference and the product of two numbers when a=50,b=45

Expert's answer

In PHP the program to find the sum, difference and the product of two numbers will be have next code:

<?php

$a = 50;

$b = 45;

$sum = $a+$b;

$difference = $a-$b;

$product = $a*$b;

?>

In JavaScript:

var a = 50;

var b = 45;

var sum, difference, product;

sum = a+b;

difference = a-b;

product = a*b;

<?php

$a = 50;

$b = 45;

$sum = $a+$b;

$difference = $a-$b;

$product = $a*$b;

?>

In JavaScript:

var a = 50;

var b = 45;

var sum, difference, product;

sum = a+b;

difference = a-b;

product = a*b;

Need a fast expert's response?

Submit orderand get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

## Comments

## Leave a comment