/** *************************************************************************** * @remark c Program to averae two numbers, read from the terminal * * * * @author Henry M. Walker * * @file average-2-ints.c * * @date July 24, 2022 * * * * @remark Reference * * @remark Consequences of Data Representation on Programming * https://blue.cs.sonoma.edu/~hwalker/courses/415-sonoma.sp25/readings/data-rep-consequences.php * * *****************************************************************************/ #include int main () { int num1, num2; printf ("Enter two integers: "); scanf ("%d%d", &num1, &num2); int avg = (num1 + num2) / 2; printf ("The average of the numbers is %d\n", avg); return 0; }