/**************************************************************************** * adder.c * * David J. Malan * malan@harvard.edu * * Adds two numbers. * * Demonstrates use of CS50's library. ***************************************************************************/ #include #include int main(void) { // ask user for input printf("Give me an integer: "); int x = GetInt(); printf("Give me another integer: "); int y = GetInt(); // do the math printf("The sum of %d and %d is %d!\n", x, y, x + y); return 0; }