#include main() { char a[2000]; int n; gets( a );/* 改行まで文字列の入力 */ n = 0 ; while( a[n] !=0 ){ n = n + 1; } printf("length of '%s' is %d\n", a, n); }