//with return value, with argument: multiplication of three numbers
#include<stdio.h>
#include<conio.h>
int mulf(int, int, int);
void main()
{
int a, b, c, mul;
clrscr();
printf("\nEnter value of a: ");
scanf("%d", &a);
printf("\nEnter value of b: ");
scanf("%d", &b);
printf("\nEnter value of c: ");
scanf("%d", &c);
mul = mulf(a, b, c);
printf("\n\nMultiplication of %d, %d and %d is %d", a, b, c, mul);
getch();
}
int mulf(int x, int y, int z)
{
return x * y * z;
}
No comments:
Post a Comment