Programming Practice
Write a C program to input two integers low and
up. Compute and output the
result of the following summation: .
Write a C program to input a positive integer and output all its positive factors. For example, if the input is integer 60, print the following output:
The positive factors of 60 are: 1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60.
Consider the following multivariate factional polynomial:
Write a C program to input floating point numbers x, y, and z. Compute and output the resulting value of f(x, y, z). Print the result four digits after the decimal point. Repeat the program until the input of x, y, and z are all zero's.
Write a C program to input double type numbers a, b, c, r1, and r2, where a, b, and c are the coefficients of quadratic equation ax2+bx+c=0. Test whether r1 and r2 are the roots of the quadratic equation. If both r1 and r2 are the roots, print a message as the following to confirm the roots:
otherwise, print a message as the following to deny the roots: