#11704: __空白


curtis123 (curtis)

學校 : 國立嘉義高級中學
編號 : 59072
來源 : [36.239.81.102]
最後登入時間 :
2020-05-14 20:50:36

#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {

int a[10],h,s=0;
for(int i=0;i<10;i++) //0~9
cin>>a[i];

cin>>h;
for(int i=0;i<10;i++)
{
if(a[i]<=h+30)
s++;
}
cout<<s<<endl;

return 0;
}