Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int mult(int, int);
- int main (void)
- {
- int x, y, product;
- printf("enter the first intger : ");
- scanf("%d", &x);
- printf("enter the second integer : ");
- scanf("%d", &y);
- product = mult(x, y);
- if (product == 0)
- printf("the second integer is a multiple of the first");
- else if (product != 0)
- printf("the second integer is not a multiple of the first");
- return 0;
- }
- int mult(int x, int y)
- {
- int product;
- product = x % y;
- return product;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement