C program to calculate x(y+z) by using user defined function

C program to calculate x(y+z) by using user defined function

Output:

Enter the values x,y,z to calculate x(y+z):
1 2 3
Result = 5

Implementation: