Program stop working *ERROR* when i hit compile and run. I'm just a beginner please help
#include <stdio.h>
#include <conio.h>
int main(){
int a,b,c,x,y;
printf("We know that general form of quadratic eq is ax^2+bx+c=0 \n");
printf("Enter First Number of equation : \n");
scanf("\n%d",a);
printf("Enter 2nd Number of equation : ");
scanf("\n%d",b);
printf("Enter 3rd Number of equation : ");
scanf("\n%d",c);
That's the vaguest error message I've ever seen! :-D
Are you sure you can't give any further details?
Are you on a Windows machine? Are you sure there's conio.h on it?
What if you change your code this way?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <stdio.h>
/* #include <conio.h> */
int main()
{
int a,b,c,x,y;
printf("We know that general form of quadratic eq is ax^2+bx+c=0 \n");
printf("Enter First Number of equation : \n");
scanf("\n%d",a);
printf("Enter 2nd Number of equation : ");
scanf("\n%d",b);
printf("Enter 3rd Number of equation : ");
scanf("\n%d",c);
/* getch(); */
return 0;
}