Program to find Product of Two Numbers using Function by Returns a Float

Program to find Product of Two Numbers using Function by Returns a Float.




#include
main()
{

int i;
float j, prod;
float product (int x, float y);

printf("Enter the i(int) and j(float):");
scanf ("%d %f", &i, &j);
prod = product(i,j);
printf("Product:%f", prod);

}


product (int x, float y)
{
float product;
product = x*y;
return (product);
}



No comments:

Post a Comment