49.6k views
0 votes
WAP to calculate sum and product of two numbers where numbers are 20 and 30.

a. Sum = 50, Product = 600
b. Sum = 600, Product = 50
c. Sum = 500, Product = 200
d. Sum = 200, Product = 500

User Tom Cruise
by
6.9k points

1 Answer

1 vote

Final answer:

To find the sum of the two numbers, add them together, resulting in 50. To find the product, multiply them, resulting in 600. The correct answer is: Sum = 50, Product = 600.

Step-by-step explanation:

The question is asking to write a program (WAP) to calculate the sum and product of two numbers, specifically 20 and 30. To find the sum, we simply add the two numbers together. To find the product, we multiply the two numbers.

Sum = 20 + 30 = 50
Product = 20 * 30 = 600

Therefore, the correct answer is: a. Sum = 50, Product = 600

User Riccardo Galli
by
7.6k points