What if anything prints when each of the following statement

What, if anything, prints when each of the following statements is performed? Assume x = 2 and y = 3. print f(\"%d = %d\", x, y); print f(\"%d\", x + y); z = x * y + 3; print f(\"Hello \ World\ , %d\", 3); print f(\"x is equal to y\");

Solution

Hi buddy, please find the below answers. Each statement is self explanatory

a. 2 = 3

b. 5

c. z = x*y + 3.Now z holds 9

d. Hello

World

,3

e. x is equal to y

 What, if anything, prints when each of the following statements is performed? Assume x = 2 and y = 3. print f(\

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site