Question: Modify the code below using a do-while loop instead of a while loop. #include using namespace std; int main() { int total_num = 5, i

Modify the code below using a do-while loop instead of a while loop.

#include using namespace std;

int main() { int total_num = 5, i = 0, element, sume = 0, average; cout<<"Enter 5 integer number and press enter"<>element; sum=sum+element; i++; } average=sum/total_num; cout<<"The average value is:"<

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!