正在加载图片...
例2:统计从键盘输入一行字符的个数。 #include' stdio h void main Int n=u printf( input a string in) loop: if(getchar="n") n+十 goto loop printf("%d,n);#include"stdio.h" void main() { int n=0; printf("input a string\n"); loop: if(getchar()!='\n') { n++; goto loop; } printf("%d",n); } 例2:统计从键盘输入一行字符的个数
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有