1. Two numbers are input through the keyboard into two locations, C and D. Write a program to interchange the contents of C and D.
2. The nature of a quadratic equation's roots (its solutions) is determined by the discriminant, a value calculated as D = b² - 4ac for a standard quadratic equation ax² + bx + c = 0.
If D > 0, the roots are real and unequal (distinct).
If D = 0, the roots are real and equal (a single repeated root).
If D < 0, the roots are imaginary (or complex, meaning they are not real numbers).
Write a program to read the coefficients a, b, and c from user and determine the nature of the roots of a quadratic equation.
3. Write a program to print the following pattern:
*
* *
* * *
* * * *
* * * * *
The number of lines is provided as input, and the program must generate the pattern mentioned above.