#include <cs50.h>
#include <stdio.h>
int main (void)
{
printf("get the value of x \n");
int x = getint();
printf("y \n");
int y = getint();
printf("addition of %d and %d is %d \n", x,y, x+y);
return 0;
}
//error msg
//adder.c:6:13: error: implicit declaration of function 'getint' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
int x = getint();
^
1 error generated.
jharvard@appliance (~/Downloads):