int a;
for (count=1; count<=n; count++) {
cout << "Enter Number: ";
cin >> a;
sum = sum + a;
}
cout << "The sum is " << sum << endl;
avg = sum / n;
cout << "The average is " << avg << endl;
return 0;
}
i want to make this program after each number entry, the program will ask me to continiue(until i press no it will count) with boolean function how it works ?