evaluate
p+(n.s) when p=2,n=3 and s=5
To evaluate p+(n.s) when p=2, n=3, and s=5, we substitute these values into the expression:
p + (n.s)
= 2 + (3 * 5)
= 2 + 15
= 17
Thus, p+(n.s) evaluates to 17.
To evaluate the expression p + (n.s), where p = 2, n = 3, and s = 5, we will follow the order of operations (also known as BODMAS or PEMDAS).
1. First, we will calculate the value of n.s (multiplication), where n = 3 and s = 5:
n.s = 3 * 5 = 15
2. Now, we have p + 15:
p = 2, so 2 + 15 = 17
Therefore, the value of p + (n.s) when p = 2, n = 3, and s = 5 is 17.
To evaluate the expression p + (n.s) when p = 2, n = 3, and s = 5, you need to substitute these values into the expression and perform the appropriate operations according to the order of operations (PEMDAS/BODMAS).
The expression p + (n.s) represents adding the sum of n multiplied by s to p.
Let's substitute the values:
p + (n.s) = 2 + (3 * 5)
Now, we need to evaluate the multiplication first:
p + (n.s) = 2 + (15)
Finally, we perform the addition:
p + (n.s) = 2 + 15 = 17
Therefore, when p = 2, n = 3, and s = 5, the expression p + (n.s) evaluates to 17.