Skip to main content

Posts

Showing posts from August, 2017

Write a C Program to Determine the roots of the quadratic equation (ax^2 + bx + c = 0) [Code and Explanation]

Determine the roots of the quadratic equation Using the well-known quadratic formula Allow for the possibility that one of the constants has a value of zero, and that the quantity is less than or equal to zero. Test the program using the following sets of data:

Write a C Program That Requests an Integer Value from the User. (Code and Explanation)

Write a C program that requests an integer value from the user. If the value is between 1 and 100, print “OK;” otherwise, print “Out of range”.