/***********************************************************************
「kadai061」
自分の名前を、入力し、文字数を数えて表示する
************************************************************************/
#include <stdio.h>
main(){
char a[6+1];
int i;
scanf("%s",&a[0]);
i = 0;
while(a[i]){
i++;
}
printf("文字数は%d文字です",i);
}
while(a[i]){
i++;
}while ( a[i++] ); スマート♪
|

- >
- Yahoo!サービス
- >
- Yahoo!ブログ
- >
- 練習用




