I am building a basic calculator in C using the eclipse IDE. when the code compiles nothing is shown in the output screen. after enter any two number in the output section it adds the two number and the program printf's text.
#include<stdio.h>
int main() {
int a , b , sum;
printf("Enter first number:");
scanf("%d",&a);
printf("Enter second number:");
scanf("%d",&b);
sum = a+b;
printf("%d",sum);
return 0;
}
empty output. the instructions taht ask the user to enter the number is not showing