0
Using a while Loop
#include <iostream> using namespace std; int main() { int num = 1; int number; int total = 0; while (num <= 5) { cin >> number; total += number; num++; } cout << total << endl; return 0; } if_______________________________________________ number={3,2,1} Outputs=8 ????????????????????????????????????????????????????
1 ответ