Multiplication Program
June 25, 2010 Leave a comment
#include <stdio.h>
int main()
{
int x, y, product;
printf(“Enter the first integer: \n”);
scanf(“%d”, &x);
printf(“Enter the second integer: \n”);
scanf(“%d”, &y);
product = x * y;
printf(“The product is : %d”, product);
getchar();
getchar();
return 0;
}
Sample Output:
Enter the first integer: 3
Enter the second integer: 2
The product is : 6