Thursday, April 25, 2013

Function: Use of function

Write a program to show the use of function 


#include<stdio.h>
main()
{
int a,b,c;
printf("\n\tIT'S A PROGRAM  TO  SHOW THE USE OF FUNCTION\n");
printf("\nEnter the value of a:");
scanf("%d",&a);
printf("\nEnter the value of b:");
scanf("%d",&b);
c=rose(a,b);
printf("\nMultiplication of %d and %d is:",a,b);
printf("%d",c);
}

rose(x,y,p)
int p,x,y;
{
p =x*y;
return (p);
}

No comments:

Post a Comment