True. Remove the second variable, it achieves the same result with only one variable.
int main()
{
int num = 0;
int total = 0;
do{
cout << "Enter a number: " <<...
Type: Posts; User: aejr120
True. Remove the second variable, it achieves the same result with only one variable.
int main()
{
int num = 0;
int total = 0;
do{
cout << "Enter a number: " <<...
if ((mark >=0) && (mark <=25))
cout << "cat_1";
This does nothing to update the integer variables, this only displays "cat_1" on the screen. Instead, increment the variables...