1. Trace the following code with input values: 5, 8, 3, 1, 4, 2.
#include <iostream>
using namespace std;
int main()
{
int n = 0;
float x1 = 0, sum = 0;
cout << "How many numbers do you have? ";
cin >> n;
while (n > 0)
{
cout << "Enter a number: ";
cin >> x1;
sum = sum + x1;
n = n - 1;
}
if (sum < 20)
cout << "C++ is Great!" << endl;
else
{
sum = sum - 2;
cout << "I love C++." << endl;
}
}