>>749
どうしてもscanfが使いたいなら
scanf("%d%*c", &i);
でいいやん

>>750
ttp://www.bohyoh.com/CandCPP/C/Library/fprintf.html