#include<stdio.h>
void main()
{
int n = 0;
printf("input a string:\n");
loop:if(getchar() != '\n')
n++ ;
goto loop; //跳转到标号loop处
}
printf("The number of character is:%d",n);
望远
相关分类