devi aggiungere una L (per "long")

scanf("%lf", &moneta);