Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************
- Author: Sher D.
- Date: 1 August 2013
- Purpose: Product of two integers.
- ******************************************************************/
- #include <stdio.h>
- int main()
- {
- int num1, num2;
- int product;
- printf("Please enter the first integer: ");
- scanf("%d%*c", &num1);
- printf("Please enter the second integer: ");
- scanf("%d%*c", &num2);
- product = num1 * num2;
- printf("The product of the two numbers is: %d\n", product);
- return(0);
- }
Advertisement
Add Comment
Please, Sign In to add comment