救救孩子吧
查看原帖
救救孩子吧
1238295
jzphhc楼主2024/1/17 19:09
#include<stdio.h>
int main()
{
    int height[10],H,i;
    int s=0;
    for(i=0;i<10;i++)
    {
        scanf("%d\n%d",&height[i],&H);
    }
    H+=30;
    for(i=0;i<10;i++)
    {    
        if(H>=height[i])
         s++;
        printf("%d",s);
    }
    return 0;
}
2024/1/17 19:09
加载中...