别人用C++/Python,我发了个C
2024-12-22 19:59:53
发布于:湖北
0阅读
0回复
0点赞
#include <stdio.h>
int main(){
int apple[10];
int height;
int count=0;
for(int i=0;i<10;i++){
scanf("%d",&apple[i]);
}
scanf("%d",&height);
height+=30;
for(int i=0;i<10;i++){
if(apple[i]<=height){
count++;
}
}
printf("%d",count);
}
这里空空如也
有帮助,赞一个