Write a function which receives a float and an int from main(), finds the product of these two and returns the product which is printed through main().

#include<stdio.h>
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);

}




The program can be found at:
Download File.

No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin