Create a function gcda b that receives two integers and


You have to prepare the code in PHP.

Question 1: Create a function quadratic(x) that computes function f(x) with x as the only input parameter and returns f(x) = ax2 + bx + c with a = 1.0, b = 2.0, and c = 1.0.

In the body of your page create a loop that displays the values of x and the corresponding f(x) for the values of 5, 10, 15, 20 ... 100.

Question 2: Create a function gcd(a, b) that receives two integers and returns the greatest common denominator of the two integers.

Select five unique combinations for a and b. Using your function, show the values for a and b along with their greatest common denominator. Can somebody provide the answer for given question with example?

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Create a function gcda b that receives two integers and
Reference No:- TGS0958424

Expected delivery within 24 Hours