C Programming Code Examples C > Recursion Code Examples Program to find Product of 2 Numbers using Recursion Program to find Product of 2 Numbers using Recursion This C program using recursion, finds the product of 2 numbers without using the multiplication operator. #include <stdio.h> int product(int, int); int main() { int x, y, result; printf("Enter two numbers to find their product: "); scanf("%d%d", &x, &y); result = product(x, y); printf("Product of %d and %d is %d\n", x, y, result); return 0; } int product(int x, int y) { if (x < y) { return product(y, x); } else if (y != 0) { return (x + product(x, y - 1)); } else { return 0; } }