Answer:
Reference
Explanation:
i don't know how to explain it but that's the answer
Answer:
Explanation:
1) the versions of JavaScript that are fully supported by all modern browsers ( Except internet explorer 9) are:
C. ECMAScript 3, ECMAScript 5
2) JavaScript is used to implement complex features on a_____
A. web page
3) computer programming tools that are used to store data are called____
C. variables
4) var name = Scott; is the code to create a ____ called "Scott"
D. None of the above
Scott is a variable
5) the key difference between "var" and "let" variables is that____
D. None of the above
let is used to redefine a variable by using var to redefine may cause problems
6) Hoisting in JavaScript is the process whereby declarations get moved to the____
C. top
7) Im JavaScript, "/ /" is used to code____
A. comments
8) ______ data types have two potential values - true and false.
D. None of the above
Boolean is the data type and null is always false
9) Using ____ gives coders the ability to query data set data to create blueprints.
C. consoles
The Console object provides access to the browser's debugging console.
Answer:
#include <iostream>
using namespace std;
int main()
{
int input = 0;
int count = 0;
int sum = 0;
int sumNegative = 0;
while (true) {
cout << "Enter a number: ";
cin >> input;
if (input == 0) break;
count++;
sum += input;
if (input < 0) {
sumNegative += input;
}
}
cout << "Count of the numbers: " << count << endl;
cout << "Sum of all the numbers: " << sum << endl;
cout << "Sum of the negative numbers: " << sumNegative << endl;
}
Explanation:
Your requirements regarding the sum and the negative numbers was a bit vague so I just did something you can probably adjust easily to your liking.
Answer:
All
Explanation:
Not sure on the context of this question, but a loop is generally used to iterate though every piece of data to perform some kind of operation, on everything in something like an array or string.