Question: #include using namespace std; int main(){ //Declare required variables int num = 0, max; //Prompt for input cout > num; //set it to max max

 #include using namespace std; int main(){ //Declare required variables int num

#include using namespace std; int main(){ //Declare required variables int num = 0, max; //Prompt for input cout > num; //set it to max max = num; //loop until counter is less than 5 // and get the remaining four number int counter = 2; for (counter = 2 ; counter > num; // if nums is greater than max, set max as num if (num > max) max = num; / /output result cout

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!