/**************************************************************************** * adder.c * * Computer Science 50 * David J. Malan * * Adds two numbers. * * Demonstrates use of CS 50's library. ***************************************************************************/ #include #include int main(int argc, char * argv[]) { int x, y; /* ask user for input */ printf("Give me an integer: "); x = GetInt(); printf("Give me another integer: "); y = GetInt(); /* do the math */ printf("The sum of %d and %d is %d!\n", x, y, x + y); }