"%d"はint型を処理する。float, doubleを渡したときは何が起こるかわからない。
"%f"はfloat, double型を処理する。char, short, int, longを渡したときは何が起こるかわからない。