09.04.2010, 20:58
well, you better use gets instead of scanf
you can use simply
and if you still like to use scanf you have to do
hope that help you
you can use simply
Код:
float a,b,c,x1,x2,D; gets(a); gets(b); gets©; printf("readed:\na= %f\nb= %f\nc= %f\n",&a,&b,&c);
Код:
float a,b,c,x1,x2,D; scanf("%f",&a); scanf("%f",&b); scanf("%f",&c); printf("readed:\na= %f\nb= %f\nc= %f\n",&a,&b,&c);