mettici un flush (std) ...
do è un costrutto scanf una funzione