write a program to display the product of two numbers using function
Answers
Answered by
2
Answer:
Program 2
float multiplyNum(float, float);
int main()
{
//variable declaration.
printf ("Enter both numbers\n");
scanf("%f %f" ,&num1,&num2);//Taking numbers as input.
product=multiplyNum(num1,num2);//calling the function.
//The product value (returned by the function) is stored in product variable.
Similar questions