2007-07-19 自然数の桁数 ある自然数が変数nに入っている。nは何桁の数かを求めるプログラムを書け。 高校3年生によるコード floor(log10(n))+1 中学3年生によるコード strlen(int2str(n))