C Programming Code Examples C > Mathematics Code Examples Program to Find Product of 2 Numbers without using Recursion Program to Find Product of 2 Numbers without using Recursion This C Program using iteration, 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) { int temp = 0; while (y != 0) { temp += x; y--; } return temp; }