Odgovoricu sam sebi, mozda neko bude imao slicnih problema :)
double prvi;
char test[255];
printf ("Unesite prvi broj: ");
while (scanf("%lf",&prvi)!=1)
{
scanf("%s", test);
printf ("%c nije broj\n",prvi);
while (getchar()!='\n');
printf ("Unesite prvi broj: ");
}
potrebno je dodati...