The following codes explains about how to multiply using function.
#include<stdio.h>
#include<conio.h>
void multiply()
{
int x,y,z;
clrscr();
printf("Enter the number\n");
scanf("\n%d%d",&y,&z);
x=y*z;
printf("The result of multiplication=%d\n",x);
}
void main()
{
multiply();
getch();
}
No comments:
Post a Comment