|
очевидно, ты просто не успеваешь прочесть вывод на экран; добавленные строки заставят окно ждать ввода символа и нажатия Enter.
#include <stdio.h>
main()
{
int a,b,c;
char c;
printf("\nThe first number is ");
scanf("%d",&a);
printf("The second number is ");
scanf("%d",&b);
c = a + b;
printf("The answer is %d \n",c);
scanf("%c", &c);
}
__________________
Great minds discuss ideas. Average minds discuss events. Small minds discuss people.
|