Im taking a C programming class in college and ive never had any previous experience programming. I got this assignment and i dont know how to do it. The assignment is Create a C file named numbers.c that accept as input from the keyboard 5 numbers. Calculate the following:Sum, Product and Average. Ok i went to my teacher for help and all she would tell me is that i am computing the sum before you receive the input from the
keyboard. HOw do i fix this? Here is my code:
#include <stdio.h>
int main()
{
int x,y,sum;
sum = x + y;
printf("Enter Two Numbers:");
scanf("%i %i",&x,&y);
printf("Sum:%i",sum);
return 0;
}