Question
What is the output of the following pseudo-code?
``` count = 0 for i from 1 to 3: for j from 1 to i: count = count + 1 print(count) ```Solution
Dry Run: `count = 0` `i = 1`: `j = 1`: `count = 0 + 1 = 1` `i = 2`: `j = 1`: `count = 1 + 1 = 2` `j = 2`: `count = 2 + 1 = 3` `i = 3`: `j = 1`: `count = 3 + 1 = 4` `j = 2`: `count = 4 + 1 = 5` `j = 3`: `count = 5 + 1 = 6` Final `count = 6`
If p = 33 - q - r and pq + r(q + p) = 260, then find the value of (p² + q² + r²).
Solve the inequality:
(x − 1)/(x + 2) > 2.
Which of the following represents the solution set?
(A) x < −5
(B) −5 < x <...
Find the value of the given expression-
(4x+4 -5× 4x+2) / 15×4x – 22×4x
- If (x - y) = 5, then find the value of (x³ - y³ - 15xy).
If (a2 + 1/a2) = 11, then find the value of (a3 - 1/a3).
(x – 6) 2 + (y + 2) 2 + (z – 4) 2 = 0, then find the value of 4x - 3y + z.
If (a3+1)/(a+1) = (a3-1)/(a-1) and a ≠ 1, -1. Find the value of 'a'
- If [x + (1/x)] = 7, find the value of [x⁴ + (1/x⁴)].
If a + b + c = 12 and ab + bc + ca = 30, then find the value of a² + b² + c².
If a = 2 + √3, then the value of `(a^(6) + a^(4) + a^(2) + 1)/(a^(3))` is