Void sunny

What is the output of the following program? (6, 7, 8)

include

using namespace std;

int temp;

void sunny(int&, int); void cloudy(int, int&);

int main()

int num1 = 6;

int num2 = 10;

temp = 20;

cout < num1="">< "="" "="">< num2="">< "="" "="">< temp=""><>

sunny(num1, num2);

cout < num1="">< "="" "="">< num2="">< "="" "="">< temp=""><>

cloudy(num1, num2);

cout < num1="">< "="" "="">< num2="">< "="" "="">< temp="">< endl;   ="" return="" 0;="">

void sunny(int& a, int b)

int w;

temp = (a + b) / 2;

w = a / temp;

b = a + w;

a = temp - b;

void cloudy(int u, int& v)

temp = 2 * u + v;

v = u;

u = v - temp;

WhatsApp
Hello! Need help with your assignments?

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102

🛡️ Worried About Plagiarism? Run a Free Turnitin Check Today!
Get peace of mind with a 100% AI-Free Report and expert editing assistance.

X