Question
Q1. Write a C program that prompts the user to enter the value of an angle in degrees.which a line makes with the positive x-axis.
Q1. Write a C program that prompts the user to enter the value of an angle in degrees.which a line makes with the positive x-axis.
Then the program must print which quadrant the line lies in. Also, if the angle is 0, 90, 180 or 270 degrees - the program must print the line lies on positive x axis for 0 degree, negative y axis for 270 degrees etc.
Q2. Write a C program that calculates and returns the real roots of a quadratic equation. If there are no real roots - the program need not calculate - but must flag/print that there are no real roots. You must submit sample run for both cases - real and imaginary roots.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started