// Square two numbers and sum their squares. // Written by: Abiram Nadarajah // Written as a COMP1521 lecture example #include int main(void) { int a, b; printf("Enter a number: "); scanf("%d", &a); printf("Enter another number: "); scanf("%d", &b); // simplify this! int tmp = a + b; tmp = tmp / 2; printf("The average is "); printf("%d", tmp); putchar('\n'); return 0; }