moderate basic
moderate basic
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.
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.