Programming Quiz

Results

#1 What is the output of the above code segment?

#2 The prices of two products x and y are 125 and 110 respectively. But the prices of x and y are incorrectly entered as 110 and 125 respectively by the programmer while calculating the profit and loss from both the products. How can the programmer correct the values of x and y?

#3 What will be the value of count after the execution of the following code segment?