zoukankan      html  css  js  c++  java
  • 第七章例7-13

    #include<stdio.h>
    int main(void)
    {
        int count,i;
        char str[80];
     
        printf("Enter a string:");
        i=0;
        while((str[i]=getchar())!=' ')
            i++;
        str[i]='';
     
        count=0;
        for(i=0;str[i]!='';i++)
            if(str[i]<='9'&&str[i]>='0')
                count++;
            printf("count=%d ",count);
     
            return 0;
    }

  • 相关阅读:
    web--ajax--json
    4.26
    4.25
    4.23
    4.22
    4.20
    4.19
    4.18
    4月问题总结章
    4.17
  • 原文地址:https://www.cnblogs.com/jiangjiali/p/3356040.html
Copyright © 2011-2022 走看看