// A simple program demonstrating the use of scanf // to sum 2 numbers // Andrew Taylor - andrewt@unsw.edu.au // 6/3/2017 #include int main(void) { int x, y; printf("Enter x: "); scanf("%d", &x); printf("Enter y: "); scanf("%d", &y); printf("%d + %d = %d\n", x, y, x +y); return 0; }