Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main (void){
- int myNum1, myNum2, myNum3;
- printf("Enter the first number: ");
- scanf("%d", &myNum1);
- printf("\nEnter the second number: ");
- scanf("%d", &myNum2);
- printf("\nEnter the third number: ");
- scanf("%d", &myNum3);
- int sum = myNum1 + myNum2 + myNum3;
- int difference = myNum1 - myNum2 - myNum3;
- int product = myNum1 * myNum2 * myNum3;
- int division = myNum1 / myNum2;
- int quotient = myNum1 % myNum2 % myNum3;
- printf("The sum is: %d\n", sum);
- printf("The difference is: %d\n", difference);
- printf("The product is: %d\n", product);
- printf("The division is: %d\n", division);
- printf("The quotient is: %d", quotient);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement