Answer:
hi im writing this to get points but i hope your doing good in school and pass you got this school is almost over good job bye
Explanation:
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:
a = int(input("Enter first number: "))
b = int(input("Enter second number: "))
c = int(input("Enter third number: "))
a,b = a+b,b+c
print(a,b,c)
Explanation:
Assignments like this are easy in python, in the sense that no helper variables are needed!
<span>Go appears in the menu bar when Finder has focus, not in the Finder window.</span>