1.
Read in 3 integers and print a message if any one of them is equal to the sum of
the other two.
2. Read in the coordinates of two points and print the equation of the line joining
them in y = mx+c form.
3. Read in the coordinates of 3 points in 2-d plane and check if they are collinear.
Print a suitable message.
4. Read in the coordinates of a point, and the center and radius of a circle. Check
and print if the point is inside or outside the circle.
5. Read in the coefficients a, b, c of the quadratic equation ax2 + bx + c = 0, and
print its roots nicely (for imaginary roots, print in x + iy form)
6. Suppose the digits 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 are mapped to the lowercase letters a,
b, c, d, e, f, g, h, i, j respectively. Read in a single digit integer as a character
(using %c in scanf) and print its corresponding lowercase letter. Do this both
using switch and without using switch (two programs). Do not use any ASCII
code value directly.
7. Suppose that you have to print the grades of a student, with >= 90 marks getting
EX, 80-89 getting A, 70-79 getting B, 60-69 getting C, 50-59 getting D, 35-49
getting P and <30 getting F. Read in the marks of a student and print his/her
grade.
8. Enter 3 integer values and find the maximum of these numbers using a single
ternary ( ? : ) operator.