A) // This code should use a loop to raise a number to a power. int num, bigNum, power, count; cout cin >> num; cout cin >> power; bigNum = num; while (count++ bigNum *= num; cout B) // This code...



A) // This code should use a loop to raise a number to a power.


int num, bigNum, power, count;


cout <>


cin >> num;


cout <>


cin >> power;


bigNum = num;


while (count++


bigNum *= num;


cout <><>


B) // This code should average a set of numbers.


int numCount, total;


double average;


cout <>


cin >> numCount;


for (int count = 0; count <>


{


int num;


cout <>


cin >> num;


total += num;


count++;


}


average = total / numCount;


cout <><>



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here