#include <stdio.h>
int sum(int a, int b)
{
return a + b;
}
int main()
{
int a, b, c;
printf("Enter your first number");
scanf("%d\n", &a);
printf("Enter your second number");
scanf("%d\n", &b);
c = sum(a, b);
printf("The sum is %d\n", c);
return 0;
}
// When I run this code, int b doesnt execute until i type int a two times . And then it adds both of those int a but not a and b. why is that? pls help