/* Program file: snowhp1.c Author: Harmonie Snow Date: September 11, 2022 Assignment: Program #1 Objective: This program calculates and prints the sum, difference, product, quotient, and remainder (modulus) of two integer numbers, as well as tells the user my birthday. Don't worry, I won't expect gifts when the day comes. Also no user input is required by this program. */ #include void main(void) { /*Introduce the variables we're using.*/ int birth_mth, birth_day, num1, num2, sums_ansr, diff_ansr, prod_ansr, quot_ansr, quot_remn; /*Give those variables some values to hold on to.*/ birth_mth = 1; birth_day = 14; num1 = 16; num2 = 200; sums_ansr = num1 + num2; /* Addition */ diff_ansr = num2 - num1; /* Subtraction */ prod_ansr = num1 * num2; /* Multiplication */ quot_ansr = num2 / num1; /* Division */ quot_remn = num2 % num1; /* Dividing and getting the remainder */ /*Print out to the user some math we've done with those variables and values.*/ printf("My birthday is on %i/%i.\n\n", birth_mth, birth_day); /*Tell the user my birthday.*/ printf("The two numbers used by this program are %i and %i.\n\n", num1, num2); /*Inform the user of the two numbers we're using.*/ printf("The Sum of %i plus %i is %i.\n", num1, num2, sums_ansr); /*Share the results of adding the numbers.*/ printf("The Difference of %i minus %i is %i.\n", num2, num1, diff_ansr); /*Share the results of subtracting the numbers.*/ printf("The Product of %i times %i is %i.\n", num2, num1, prod_ansr); /*Share the results of multiplying the numbers.*/ printf("The Quotient of %i divided by %i is %i with a remainder of %i.\n\n", num2, num1, quot_ansr, quot_remn); /*Share the results of dividing the numbers and include the remainder.*/ printf("Thank you for running the program."); /*Thank the user for their time.*/ getchar(); } /*end main*/