A message like this appears, when i run this code.
Project.exe has stopped working
Some of my other code works, but this seems to throw me an error.
#include<stdio.h>
#include<conio.h>
void main()
{
int n1, n2, sum;
puts("first number");
scanf("%d", n1);
fflush(stdin);
puts("second number");
scanf("%d", n2);
sum = n1 + n2;
printf("%d + %d = %d", n1, n2, sum);
getch();
}
I basically want to add two numbers.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…