📄️ A
This Python program showcases a common programming task - swapping the values of variables. It sets initial values for x, y, and z, and then proceeds to swap their values using a temporary variable. The code provides a "Before Swapping" message to display the initial values and an "After Swapping" message to show the new values of these variables. It serves as a practical example of how to perform variable value swapping in a clear and understandable manner.
📄️ B
This Python code solves a quadratic equation of the form ax^2 + bx + c = 0 using the quadratic formula. It imports the cmath module to handle complex numbers and calculates the discriminant to determine the nature of the solutions (real, repeated, or complex). The solutions are computed and displayed in the expected output.
📄️ C
This Python code is a simple program that takes user input for two numbers, performs four basic arithmetic operations (addition, subtraction, multiplication, and division), and displays the results with appropriate messages for each operation.