// 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); printf("The sum of the squares of "); printf("%d", a); printf(" and "); printf("%d", b); printf(" is "); a = a * a; b = b * b; printf("%d", a + b); putchar('\n'); return 0; }