here is how I would have done it.
//Simple 2 number adding prog
#include <stdio.h>
int main{
int num1, num2, answer; //sets integer vars
printf("Enter first number to be added:\n"); //prints text and goes to next line
scanf("%d", &num1); //waits for user to input an integer and sets "num1" to the input
printf("Enter second number to be added:\n"); //prints text and goes to next line
scanf("%d", &num2); //waits for user to input an integer and sets "num2" to the input
answer = num1 + num2; //performs calculations
printf("%d + %d = %d\n", num1, num2, answer); //prints the products and their sum and goes to next line
return 0;
}
notice how "return 0;" is inside the "main" function