By Ramarathna PaVaN Kumar.....
My Pages..
Home
C - Programming
JoKe$
Sunday, November 28, 2010
Write a function which receives a float and an int from main(), finds the product of these two numbers and returns the product which is printed throu
#include
int product(int(x),float (y))
{
float p = x*y;
printf("The Product of %d and %f is %f\n\n",x,y,p);
}
main()
{
int n;
float m;
printf("Enter Any two numbers:");
scanf("%d%f",&n,&m);
product(n,m);
}
Newer Post
Older Post
Home