3 + 4 + 5 + 6 + 9 + 7 + 6 + 8 + 5 + 2 = 55
std::array<int> A {5, 3, 2, 1, 4}; std::sort (arr.begin(), arr.end()); // arr = 1, 2, 3, 4, 5
Modulus. 7%5 is 2, 7%4 is 3, 7%3 is 1.
Write a java program to print the following output using the for loop 1 2 2 3 3 3 3 4 4 4 4 5 5 5 5 5
100101 1 times 2^0 = 1 PLUS 0 times 2^1 = 0 PLUS 1 times 2^2 = 4 PLUS 0 times 2^3 = 0 PLUS 0 times 2^4 = 0 PLUS 1 times 2^5 = 32 EQUALS 37
Well done to the student in question but what exactly is your question?
The answer is: (-5)+(-2)+3 = -4
2 + 3 + 4 + 5 + 6 = 20
3 plus 2 is 5
No, 1 + 2 + 3 + 4 + 5 = 15.
2 + 5 - 3 = 4
It would help if the question specified "Why is 2 and 5 plus 3 and 4" what!
4-2 isn't 3, it's 2. 3+2 is 5.
-3 + (-4) - (-5) = -3 - 4 + 5 = -2
It is 77
You take 4 times 5 which is 20 then 3 plus 2 which is 5. Add 20 plus 5 and you get 25. That's the answer.
11 + 7 + 5 + 4 + 3 + 3 + 3 + 2 + 2 + 2 = ?First, group things in groups of tens (or twenties).(11 + 5 + 4) + (7 + 3) + (3 + 3 + 2 + 2) + 2 = ?20 + 10 + 10 + 2 = ?30 + 12 = ?42 = ?So your answer is 42.
1 + 2 + 3 + 4 + 5 + 6 + 100 = 121